Skip to content

Commit 29a74f3

Browse files
committed
Fix lint
1 parent 603d371 commit 29a74f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypy/binder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ def assign_type(self, expr: Expression,
230230
and not restrict_any):
231231
pass
232232
elif (isinstance(type, AnyType)
233-
and (not isinstance(declared_type, UnionType)
234-
or not any(isinstance(item, NoneTyp) for item in declared_type.items))):
233+
and (not isinstance(declared_type, UnionType)
234+
or not any(isinstance(item, NoneTyp) for item in declared_type.items))):
235235
# Assigning an Any value doesn't affect the type to avoid false negatives, unless
236236
# there is an Any item in a declared union type.
237237
self.put(expr, declared_type)

0 commit comments

Comments
 (0)