Skip to content

Commit 8b82547

Browse files
authored
checker.py: Remove unneeded cast() (#13984)
1 parent fed90ca commit 8b82547

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mypy/checker.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from contextlib import contextmanager, nullcontext
88
from typing import (
99
AbstractSet,
10-
Any,
1110
Callable,
1211
Dict,
1312
Generic,
@@ -3453,8 +3452,7 @@ def check_multi_assignment_from_union(
34533452
assert declared_type is not None
34543453
clean_items.append((type, declared_type))
34553454

3456-
# TODO: fix signature of zip() in typeshed.
3457-
types, declared_types = cast(Any, zip)(*clean_items)
3455+
types, declared_types = zip(*clean_items)
34583456
self.binder.assign_type(
34593457
expr,
34603458
make_simplified_union(list(types)),

0 commit comments

Comments
 (0)