Skip to content

Commit

Permalink
fix: id typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mokto authored and art049 committed Mar 18, 2024
1 parent a03c327 commit 1c96982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odmantic/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ class Model(_BaseODMModel, metaclass=ModelMetaclass):
__collection__: ClassVar[str] = ""
__primary_field__: ClassVar[str] = ""

id: Union[ObjectId, Any] = Field() # TODO fix basic id field typing
id: Union[ObjectId, Any] = None # TODO fix basic id field typing

def __setattr__(self, name: str, value: Any) -> None:
if name == self.__primary_field__:
Expand Down

0 comments on commit 1c96982

Please sign in to comment.