소스 검색

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


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