mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Fixes #1850. The fix was already applied to Python 2, but the typevar-based solution there leads to "cannot infer value of type variable" in mypy. I used the following script to check: ```python from itertools import product reveal_type(product([1])) reveal_type(product([1], ['x'], [False], [3.0], [(1,)], [('x',)], [{1}], [{1: 2}], repeat=5)) ```