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 da5adc9 commit 272de9aCopy full SHA for 272de9a
mypy/subtypes.py
@@ -294,7 +294,7 @@ def visit_instance(self, left: Instance) -> bool:
294
if not self.check_type_parameter(lefta, righta, COVARIANT):
295
nominal = False
296
else:
297
- if not self.check_type_parameter(lefta, righta, COVARIANT):
+ if not is_equivalent(lefta, righta):
298
299
if nominal:
300
TypeState.record_subtype_cache_entry(self._subtype_kind, left, right)
0 commit comments