Skip to content

Commit 37acb98

Browse files
committed
fix type
1 parent 3771c06 commit 37acb98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandera/engines/pandas_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ class Geometry(DataType):
715715
class PydanticModel(DataType):
716716
"""A pydantic model datatype applying to rows in a dataframe."""
717717

718-
type: Type[BaseModel] = dataclasses.field(init=False)
718+
type: Type[BaseModel] = dataclasses.field(default=None, init=False) # type: ignore # noqa
719719

720720
# pylint:disable=super-init-not-called
721721
def __init__(self, model: Type[BaseModel]) -> None:

0 commit comments

Comments
 (0)