Skip to content

Commit

Permalink
checker.py: Remove unneeded cast() (#13984)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Nov 1, 2022
1 parent fed90ca commit 8b82547
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mypy/checker.py
Expand Up @@ -7,7 +7,6 @@
from contextlib import contextmanager, nullcontext
from typing import (
AbstractSet,
Any,
Callable,
Dict,
Generic,
Expand Down Expand Up @@ -3453,8 +3452,7 @@ def check_multi_assignment_from_union(
assert declared_type is not None
clean_items.append((type, declared_type))

# TODO: fix signature of zip() in typeshed.
types, declared_types = cast(Any, zip)(*clean_items)
types, declared_types = zip(*clean_items)
self.binder.assign_type(
expr,
make_simplified_union(list(types)),
Expand Down

0 comments on commit 8b82547

Please sign in to comment.