瀏覽代碼

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


Loading…
取消
儲存