Explorar el Código

Fix one Generator annotation

tags/v0.7.0
Ben Kurtovic hace 1 año
padre
commit
16681fd182
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      src/mwparserfromhell/wikicode.py

+ 1
- 1
src/mwparserfromhell/wikicode.py Ver fichero

@@ -124,7 +124,7 @@ class Wikicode(StringMixIn):
if recursive:
restrict = forcetype if recursive == self.RECURSE_OTHERS else None

def getter(i: int, node: Node) -> Generator[tuple[int, Node]]:
def getter(i: int, node: Node) -> Generator[tuple[int, Node], None, None]:
for ch in self._get_children(node, restrict=restrict):
yield (i, cast(Node, ch))



Cargando…
Cancelar
Guardar