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.
1 parent 8c09147 commit 8717196Copy full SHA for 8717196
mypy/checker.py
@@ -4055,7 +4055,8 @@ def check_indexed_assignment(
4055
[nodes.ARG_POS, nodes.ARG_POS],
4056
context,
4057
)
4058
- if isinstance(get_proper_type(res_type), UninhabitedType):
+ res_type = get_proper_type(res_type)
4059
+ if isinstance(res_type, UninhabitedType) and not res_type.ambiguous:
4060
self.binder.unreachable()
4061
4062
def try_infer_partial_type_from_indexed_assignment(
0 commit comments