Cannot use `dict` as generic typehint
Vftdan opened this issue · 0 comments
Vftdan commented
Python verision: 3.8
Exception:
Traceback (most recent call last):
File "/usr/local/bin/discordrp-mpris", line 33, in <module>
sys.exit(load_entry_point('discordrp-mpris==0.3.2', 'console_scripts', 'discordrp-mpris')())
File "/usr/local/bin/discordrp-mpris", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.8/importlib/metadata.py", line 75, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/local/lib/python3.8/dist-packages/discordrp_mpris/__main__.py", line 49, in <module>
weigth_map: dict[str, int] = DefaultDict(
TypeError: 'type' object is not subscriptable