Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use dict as generic typehint #29

Closed
Vftdan opened this issue Jul 14, 2022 · 0 comments · Fixed by #30
Closed

Cannot use dict as generic typehint #29

Vftdan opened this issue Jul 14, 2022 · 0 comments · Fixed by #30
Labels
bug Something isn't working
Milestone

Comments

@Vftdan
Copy link
Contributor

Vftdan commented Jul 14, 2022

weigth_map: dict[str, int] = DefaultDict(

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
@FichteFoll FichteFoll added this to the 0.3.3 milestone Jul 17, 2022
@FichteFoll FichteFoll added the bug Something isn't working label Jul 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants