fix(checker): minor fix when using base type in generic

This commit is contained in:
HEL committed 2026-06-15 00:03:26 +02:00
1 parent 2e898ab1e9
commit 52981f12f2
1 file changed
+3
+3
View File
@@ -157,6 +157,9 @@ def substitute_typevars(type: Type, substitutions: dict[str, Type]) -> Type:
case BaseType(name=name) if name in substitutions:
return substitutions[name]
case BaseType():
return type
case AliasType(name=name, type=type2):
return AliasType(name=name, type=substitute_typevars(type2, substitutions))