Skip to content

Commit

Permalink
remove unused type-ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Aug 15, 2023
1 parent df34e3c commit 9e0f4f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydantic/_internal/_mock_val_ser.py
Expand Up @@ -106,7 +106,7 @@ def attempt_rebuild() -> SchemaValidator | None:
from ..dataclasses import rebuild_dataclass

if rebuild_dataclass(cls, raise_errors=False, _parent_namespace_depth=5):
return cls.__pydantic_validator__ # type: ignore
return cls.__pydantic_validator__
else:
return None

Expand Down

0 comments on commit 9e0f4f2

Please sign in to comment.