Skip to content

Commit d80e430

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 40b8b6d commit d80e430

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mypy/stubgen.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,9 @@ def visit_class_def(self, o: ClassDef) -> None:
811811
self.dataclass_field_specifier = spec.field_specifiers
812812
is_pydantic_model = False
813813
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"):
814+
if isinstance(base_type_expr, (NameExpr, MemberExpr)) and self.get_fullname(
815+
base_type_expr
816+
).endswith("BaseModel"):
815817
is_pydantic_model = True
816818
break
817819
self.processing_pydantic_model = is_pydantic_model

0 commit comments

Comments
 (0)