fix(checker): lookup member on typevar bound

This commit is contained in:
2026-06-23 00:24:37 +02:00
parent 7c771c4070
commit 093f2bc477

View File

@@ -404,6 +404,9 @@ class TypesRegistry:
case ConstraintType(type=base):
return self.lookup_member(base, member_name)
case TypeVar(bound=bound) if bound is not None:
return self.lookup_member(bound, member_name)
case UnknownType():
return UnknownType()