From c3e39e22126e7246e72a6cacd004928161135c95 Mon Sep 17 00:00:00 2001 From: hatal175 Date: Sun, 28 Mar 2021 04:05:05 +0300 Subject: [PATCH] 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. --- test-data/samples/generators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-data/samples/generators.py b/test-data/samples/generators.py index 9150c96c8276..eb6d70104144 100644 --- a/test-data/samples/generators.py +++ b/test-data/samples/generators.py @@ -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: