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 6f7d716 commit ca738e5Copy full SHA for ca738e5
mypy/subtypes.py
@@ -217,8 +217,8 @@ def is_proper_subtype(
217
keep_erased_types=keep_erased_types,
218
)
219
else:
220
- assert not any(
221
- {ignore_promotions, erase_instances, keep_erased_types}
+ assert (
+ not ignore_promotions and not erase_instances and not keep_erased_types
222
), "Don't pass both context and individual flags"
223
if type_state.is_assumed_proper_subtype(left, right):
224
return True
0 commit comments