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 55ea42f commit 40b8b6dCopy full SHA for 40b8b6d
mypy/stubgen.py
@@ -810,10 +810,8 @@ def visit_class_def(self, o: ClassDef) -> None:
810
self.processing_dataclass = True
811
self.dataclass_field_specifier = spec.field_specifiers
812
is_pydantic_model = False
813
- for base in o.base_type_exprs:
814
- if isinstance(base, (NameExpr, MemberExpr)) and self.get_fullname(base).endswith(
815
- "BaseModel"
816
- ):
+ for base_type_expr in o.base_type_exprs:
+ if isinstance(base_type_expr, (NameExpr, MemberExpr)) and self.get_fullname(base_type_expr).endswith("BaseModel"):
817
is_pydantic_model = True
818
break
819
self.processing_pydantic_model = is_pydantic_model
0 commit comments