You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I am getting familiar with pydantic-mongo and I faced problems with example:
pydantic.errors.PydanticUserError: A non-annotated attribute was detected: `apple = 'x'`. All model fields require a type annotation; if `apple` is not meant to be a field, you may be able to resolve this error by annotating it as a `ClassVar` or updating `model_config['ignored_types']`.
and
more_edges = spam_repository.paginate({'foo.count': {'$gte': 1}}, limit=1, after=edges[-1].cursor)
TypeError: 'map' object is not subscriptable
Hello!
I am getting familiar with pydantic-mongo and I faced problems with example:
and
Python and packages versions are:
Python 3.10.12
pydantic 2.4.1
pydantic_core 2.10.1
pydantic-mongo 2.0.3
pymongo 4.6.1
What am I doing wrong?
Thanks!
The text was updated successfully, but these errors were encountered: