Skip to content

Commit e0b5a92

Browse files
committed
fix: improve type accuracy
1 parent b700c9a commit e0b5a92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ffpuppet/sanitizer_util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from typing import TYPE_CHECKING
1818

1919
if TYPE_CHECKING:
20-
from collections.abc import Generator, Sequence
20+
from collections.abc import Iterator
2121

2222
# included from:
2323
# https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/asan/scripts/
@@ -49,7 +49,7 @@ def __bool__(self) -> bool:
4949
def __contains__(self, item: str) -> bool:
5050
return item in self._options
5151

52-
def __iter__(self) -> Generator[Sequence[str]]:
52+
def __iter__(self) -> Iterator[tuple[str, str]]:
5353
yield from self._options.items()
5454

5555
def __len__(self) -> int:

0 commit comments

Comments
 (0)