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

no error for collections.abc.MutableMapping is not subscriptable #11529

Open
KotlinIsland opened this issue Nov 12, 2021 · 1 comment
Open

no error for collections.abc.MutableMapping is not subscriptable #11529

KotlinIsland opened this issue Nov 12, 2021 · 1 comment
Labels
bug mypy got something wrong topic-runtime-semantics mypy doesn't model runtime semantics correctly

Comments

@KotlinIsland
Copy link
Contributor

from collections.abc import MutableMapping

MutableMapping[int, int]

mypy python-version 3.6 test.py: Success: no issues found in 1 source file
python test.py:

TypeError: 'ABCMeta' object is not subscriptable
@KotlinIsland KotlinIsland added the bug mypy got something wrong label Nov 12, 2021
@sobolevn
Copy link
Member

Related python/typeshed#6257

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong topic-runtime-semantics mypy doesn't model runtime semantics correctly
Projects
None yet
Development

No branches or pull requests

3 participants