Procházet zdrojové kódy

Fix one Generator annotation

tags/v0.7.0
Ben Kurtovic před 1 rokem
rodič
revize
b2c8d38c0d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      src/mwparserfromhell/wikicode.py

+ 1
- 1
src/mwparserfromhell/wikicode.py Zobrazit soubor

@@ -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):


Načítá se…
Zrušit
Uložit