Skip to content

Commit ae17768

Browse files
committed
Fix a bug flagged by a commentator
1 parent e0ba527 commit ae17768

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python-type-hints-multiple-types/05_type_hints_for_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from collections.abc import Generator, Iterator
22

33

4-
def parse_email() -> Generator[tuple[str, str], str, str]:
4+
def parse_email() -> Generator[tuple[str, str] | str, str, str]:
55
sent = yield "", ""
66
while sent != "":
77
if "@" in sent:

0 commit comments

Comments
 (0)