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

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