Martin Trapp
Martin Trapp
I think this is still a big issue. I'm surprised no one else mention this.
Hi @staticxterm, thanks for the snippet. I gave it a try on my Sample collection, which contains a total of **32 documents**. I’m using **Python 3.12** and a **fresh install...
Hi @staticxterm, here is a runnable example that demonstrates the issue: ```python import asyncio from beanie import init_beanie, Document from motor.motor_asyncio import AsyncIOMotorClient class ExecutionDocument(Document): name: str value: int async...
Same here. Would love to see a fix.
If anyone interested I made a fix and migrated from the v3 client to the newer v4. PR here: #2
Same for me, and also it would be nice to remove the icon from the dock.
Fix PydanticDeprecatedSince211: Accessing the 'model_fields' attribute on the instance is deprecated
Will this be merged? And if so, will the 1.x branch receive it? I get around 115,000 warnings when running my tests, which is way too many.
Fix PydanticDeprecatedSince211: Accessing the 'model_fields' attribute on the instance is deprecated
Hi @staticxterm, theoretically, can't we just cherry pick this commit on the 1.x branch?
Additional updates: - Added missing test using a Pydantic model. - Increased coverage for `GenericEncoder`. - Extended the codegen tool to support Pydantic `BaseModel`, and updated the codegen tests accordingly....
**Additional updates**: - Extended the `Encoder` protocol with an `is_allowed_type` method - Both the original `MsgspecEncoder` and the new `GenericEncoder` implement the `type_util.is_allowed_type` function - `type_util.verify_function_input_type` and `type_util.verify_function_return_type` now accept...