Closed
Description
Steps to reproduce
- Use code
from __future__ import annotations
from collections import defaultdict
squares: defaultdict[tuple, int] = defaultdict(lambda: 999999)
- Run pylint on this code
E1136: Value 'defaultdict' is unsubscriptable (unsubscriptable-object)
Current behaviour
Throws E1136: Value 'defaultdict' is unsubscriptable (unsubscriptable-object)
Expected behaviour
Ignores it (as Python itself does)
pylint --version output
pylint 2.4.3
astroid 2.3.1
Python 3.8.0 (default, Oct 15 2019, 14:05:58)
[GCC 7.4.0]
Metadata
Metadata
Assignees
Labels
No labels