fix(checker): make UnknownType a top type for subtyping

This commit is contained in:
2026-06-22 14:15:04 +02:00
parent 878693383e
commit 577454ee7e

View File

@@ -130,6 +130,9 @@ class TypesRegistry:
case (_, TopType()):
return True
case (_, UnknownType()):
return True
case (AliasType(type=base1), _):
return self.is_subtype(base1, type2)