[issue44794] Merge tests for typing.Callable and collection.abc.Callable
Serhiy Storchaka
report at bugs.python.org
Sat Jul 31 13:49:40 EDT 2021
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
There is also similar bug in Generic:
>>> from typing import *
>>> T = TypeVar("T")
>>> P = ParamSpec("P")
>>> class X(Generic[T, P]):
... f: Callable[P, int]
... x: T
...
>>> P_2 = ParamSpec("P_2")
>>> X[int, P_2, str]
__main__.X[int, ~P_2]
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44794>
_______________________________________
More information about the Python-bugs-list
mailing list