Skip to content

Commit 07e3e3f

Browse files
committed
improve type
1 parent ad9ebee commit 07e3e3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

translators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from collections.abc import Generator
1+
from collections.abc import Iterator
22
from pathlib import Path
33

44
from git import Repo
@@ -15,7 +15,7 @@ def get_number_from_git_history(path: Path) -> int:
1515
return len(Repo(path).git.shortlog('-s', 'HEAD').splitlines())
1616

1717

18-
def yield_from_headers(path: Path) -> Generator[str, None, None]:
18+
def yield_from_headers(path: Path) -> Iterator[str]:
1919
for file in path.rglob('*.po'):
2020
try:
2121
header = pofile(file).header.splitlines() # type: ignore[call-overload] # https://github.com/python/typeshed/pull/13396

0 commit comments

Comments
 (0)