We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40b8b6d commit d80e430Copy full SHA for d80e430
mypy/stubgen.py
@@ -811,7 +811,9 @@ def visit_class_def(self, o: ClassDef) -> None:
811
self.dataclass_field_specifier = spec.field_specifiers
812
is_pydantic_model = False
813
for base_type_expr in o.base_type_exprs:
814
- if isinstance(base_type_expr, (NameExpr, MemberExpr)) and self.get_fullname(base_type_expr).endswith("BaseModel"):
+ if isinstance(base_type_expr, (NameExpr, MemberExpr)) and self.get_fullname(
815
+ base_type_expr
816
+ ).endswith("BaseModel"):
817
is_pydantic_model = True
818
break
819
self.processing_pydantic_model = is_pydantic_model
0 commit comments