fix(gen): add bases for ConstraintType and TypeVar

This commit is contained in:
2026-06-23 00:25:43 +02:00
parent 093f2bc477
commit b290c59ac4

View File

@@ -127,6 +127,12 @@ class StubsGenerator:
body_subsitutions | substitutions,
)
case ConstraintType(type=base):
return self.get_bases(base)
case TypeVar(bound=bound) if bound is not None:
return [self.dump_type(bound)], {}
case _:
return [], {}