We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad9ebee commit 07e3e3fCopy full SHA for 07e3e3f
translators.py
@@ -1,4 +1,4 @@
1
-from collections.abc import Generator
+from collections.abc import Iterator
2
from pathlib import Path
3
4
from git import Repo
@@ -15,7 +15,7 @@ def get_number_from_git_history(path: Path) -> int:
15
return len(Repo(path).git.shortlog('-s', 'HEAD').splitlines())
16
17
18
-def yield_from_headers(path: Path) -> Generator[str, None, None]:
+def yield_from_headers(path: Path) -> Iterator[str]:
19
for file in path.rglob('*.po'):
20
try:
21
header = pofile(file).header.splitlines() # type: ignore[call-overload] # https://github.com/python/typeshed/pull/13396
0 commit comments