We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cast()
1 parent fed90ca commit 8b82547Copy full SHA for 8b82547
mypy/checker.py
@@ -7,7 +7,6 @@
7
from contextlib import contextmanager, nullcontext
8
from typing import (
9
AbstractSet,
10
- Any,
11
Callable,
12
Dict,
13
Generic,
@@ -3453,8 +3452,7 @@ def check_multi_assignment_from_union(
3453
3452
assert declared_type is not None
3454
clean_items.append((type, declared_type))
3455
3456
- # TODO: fix signature of zip() in typeshed.
3457
- types, declared_types = cast(Any, zip)(*clean_items)
+ types, declared_types = zip(*clean_items)
3458
self.binder.assign_type(
3459
expr,
3460
make_simplified_union(list(types)),
0 commit comments