Quellcode durchsuchen

Fix one Generator annotation

tags/v0.7.0
Ben Kurtovic vor 1 Jahr
Ursprung
Commit
b2c8d38c0d
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. +1
    -1
      src/mwparserfromhell/wikicode.py

+ 1
- 1
src/mwparserfromhell/wikicode.py Datei anzeigen

@@ -69,7 +69,7 @@ class Wikicode(StringMixIn):
contexts: bool = False,
restrict: Optional[type] = None,
parent: Optional["Wikicode"] = None,
) -> Generator[Union[tuple[Optional["Wikicode"], Node], Node]]:
) -> Generator[Union[tuple[Optional["Wikicode"], Node], Node], None, None]:
"""Iterate over all child :class:`.Node`\\ s of a given *node*."""
yield (parent, node) if contexts else node
if restrict and isinstance(node, restrict):


Laden…
Abbrechen
Speichern