Skip to content

Commit

Permalink
Improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jefersondaniel committed Apr 25, 2024
1 parent 3123ed8 commit a82447a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class Bar(BaseModel):
banana: str = 'y'

class Spam(BaseModel):
# PydanticObjectId is an alias to Annotated[ObjectId, ObjectIdAnnotation]
id: Optional[PydanticObjectId] = None
foo: Foo
bars: List[Bar]
Expand Down
4 changes: 2 additions & 2 deletions pydantic_mongo/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .abstract_repository import AbstractRepository
from .fields import ObjectIdField, PydanticObjectId
from .fields import ObjectIdAnnotation, ObjectIdField, PydanticObjectId
from .version import __version__ # noqa: F401

__all__ = ["ObjectIdField", "PydanticObjectId", "AbstractRepository"]
__all__ = ["AbstractRepository", "ObjectIdField", "ObjectIdAnnotation", "PydanticObjectId"]

0 comments on commit a82447a

Please sign in to comment.