Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mypy/checkexpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -6359,7 +6359,7 @@ def accept(
# TODO: consider using cache for more expression kinds.
elif (
(
isinstance(node, (CallExpr, ListExpr, TupleExpr, DictExpr, OpExpr))
isinstance(node, (CallExpr, ListExpr, TupleExpr, DictExpr, OpExpr, IndexExpr))
# Only cache non-static access, it may be slow, and may freshen type vars.
or isinstance(node, MemberExpr)
and node.node is None
Expand Down
Loading