Преглед на файлове

Fix one Generator annotation

tags/v0.7.0
Ben Kurtovic преди 1 година
родител
ревизия
7ef2c45b30
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. +1
    -1
      src/mwparserfromhell/wikicode.py

+ 1
- 1
src/mwparserfromhell/wikicode.py Целия файл

@@ -111,7 +111,7 @@ class Wikicode(StringMixIn):
matches: Union[Callable[[Node], bool], re.Pattern, str, None] = None,
flags: int = FLAGS,
forcetype: Optional[type] = None,
) -> Generator[tuple[int, Node]]:
) -> Generator[tuple[int, Node], None, None]:
"""Iterate over nodes and their corresponding indices in the node list.

The arguments are interpreted as for :meth:`ifilter`. For each tuple


Зареждане…
Отказ
Запис