소스 검색

Fix one Generator annotation

tags/v0.7.0
Ben Kurtovic 1 년 전
부모
커밋
b2c8d38c0d
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      src/mwparserfromhell/wikicode.py

+ 1
- 1
src/mwparserfromhell/wikicode.py 파일 보기

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


불러오는 중...
취소
저장