Skip to content

Commit ded98cb

Browse files
committed
And we can keep inline collection literals too now since we infer both
1 parent 85d16bd commit ded98cb

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

mypy/checker.py

-8
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@
7272
ContinueStmt,
7373
Decorator,
7474
DelStmt,
75-
DictExpr,
7675
EllipsisExpr,
7776
Expression,
7877
ExpressionStmt,
@@ -106,7 +105,6 @@
106105
RaiseStmt,
107106
RefExpr,
108107
ReturnStmt,
109-
SetExpr,
110108
StarExpr,
111109
Statement,
112110
StrExpr,
@@ -5512,12 +5510,6 @@ def _make_named_statement_for_match(self, s: MatchStmt) -> Expression:
55125510
# Already named - we should infer type of it as given
55135511
NameExpr,
55145512
AssignmentExpr,
5515-
# Collection literals defined inline - we want to infer types of variables
5516-
# included there, not exprs as a whole
5517-
ListExpr,
5518-
DictExpr,
5519-
TupleExpr,
5520-
SetExpr,
55215513
# Primitive literals - their type is known, no need to name them
55225514
IntExpr,
55235515
StrExpr,

0 commit comments

Comments
 (0)