New submission from Tyler Yep <tyler....@robinhood.com>:
The following code crashes when I try to run it, even though it passes when I use `from typing import Callable` instead. ``` from collections.abc import Callable from typing import Any, TypeVar V = TypeVar("V") Function = Callable[[list[V], V, V], float] def random_fn(fn: Function[Any]) -> Function[Any]: return fn ``` ---------- messages: 385511 nosy: tyler.yep priority: normal severity: normal status: open title: No type variables left in collections.abc.Callable type: crash versions: Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43004> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com