[issue43004] No type variables left in collections.abc.Callable

2021-01-22 Thread Tyler Yep


New submission from Tyler Yep :

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 
<https://bugs.python.org/issue43004>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43004] No type variables left in collections.abc.Callable

2021-01-22 Thread Tyler Yep


Tyler Yep  added the comment:

Got it, thanks!

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue43004>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com