Skip to content

Commit 51ed754

Browse files
fix variable annotation syntax
Followup from #10255
1 parent f463a39 commit 51ed754

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test-data/samples/generators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
def iter_primes() -> Iterator[int]:
88
# an iterator of all numbers between 2 and +infinity
9-
numbers: Iterator[int] = itertools.count(2)
9+
numbers = itertools.count(2) # type: Iterator[int]
1010

1111
# generate primes forever
1212
while True:

0 commit comments

Comments
 (0)