diff options
Diffstat (limited to 'coverage/bytecode.py')
-rw-r--r-- | coverage/bytecode.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/bytecode.py b/coverage/bytecode.py index e9a908f7..2cad4f9b 100644 --- a/coverage/bytecode.py +++ b/coverage/bytecode.py @@ -6,10 +6,10 @@ from __future__ import annotations from types import CodeType -from typing import Generator +from typing import Iterator -def code_objects(code: CodeType) -> Generator[CodeType, None, None]: +def code_objects(code: CodeType) -> Iterator[CodeType]: """Iterate over all the code objects in `code`.""" stack = [code] while stack: |