Skip to content

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

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

Activity

  1. sobolevn commented on Nov 12, 2021

    @sobolevn
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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