Skip to content

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

@KotlinIsland

Description

@KotlinIsland
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrongtopic-runtime-semanticsmypy doesn't model runtime semantics correctly

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions