Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix Generators typeshed test
typshed mistakenly set itertools.count as a function while it is actually a class. Meaning that it returns a class instance and then this clashes with the filter result.
  • Loading branch information
hatal175 authored Mar 28, 2021
commit c3e39e22126e7246e72a6cacd004928161135c95
2 changes: 1 addition & 1 deletion test-data/samples/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

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

# generate primes forever
while True:
Expand Down