Message403115
Reproduction:
```
from graphlib import TopologicalSorter
TopologicalSorter[str]({"a": {}, "b": {"a"}})
```
```
$ mypy /tmp/toposort.py
Success: no issues found in 1 source file
$ python3 /tmp/toposort.py
Traceback (most recent call last):
File "/tmp/toposort.py", line 3, in <module>
TopologicalSorter[str]({"a": {}, "b": {"a"}})
TypeError: 'type' object is not subscriptable
```
I opened the issue here (rather than typeshed) because we'd presumably like to support this at runtime too.
Typeshed link: https://github.com/python/mypy/blob/0a830481980bfc554ded61a3eaaaecde384a21e4/mypy/typeshed/stdlib/graphlib.pyi#L6 |
|
Date |
User |
Action |
Args |
2021-10-03 22:18:50 | JacobHayes | set | recipients:
+ JacobHayes |
2021-10-03 22:18:50 | JacobHayes | set | messageid: <1633299530.43.0.181161136207.issue45359@roundup.psfhosted.org> |
2021-10-03 22:18:50 | JacobHayes | link | issue45359 messages |
2021-10-03 22:18:50 | JacobHayes | create | |
|