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

This commit is contained in:
HEL
2026-06-22 14:15:18 +02:00
parent 878693383e
commit 577454ee7e
+3
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)