Skip to content

Commit 8717196

Browse files
committed
Update according to requested changes
1 parent 8c09147 commit 8717196

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mypy/checker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4055,7 +4055,8 @@ def check_indexed_assignment(
40554055
[nodes.ARG_POS, nodes.ARG_POS],
40564056
context,
40574057
)
4058-
if isinstance(get_proper_type(res_type), UninhabitedType):
4058+
res_type = get_proper_type(res_type)
4059+
if isinstance(res_type, UninhabitedType) and not res_type.ambiguous:
40594060
self.binder.unreachable()
40604061

40614062
def try_infer_partial_type_from_indexed_assignment(

0 commit comments

Comments
 (0)