Skip to content

Commit 81b6592

Browse files
Update checkexpr.py
1 parent 2fed23c commit 81b6592

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mypy/checkexpr.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4498,8 +4498,7 @@ def min_tuple_length(self, left: TupleType) -> int:
44984498
def static_index_range_check(self, left_type: Type, e: IndexExpr, index: Expression):
44994499
if isinstance(left_type, Instance) and left_type.type.fullname in (
45004500
"builtins.list",
4501-
"builtins.set",
4502-
"builtins.dict",
4501+
"builtins.tuple",
45034502
"builtins.str",
45044503
"builtins.bytes",
45054504
):

0 commit comments

Comments
 (0)