-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Beanie 1.21 still triggers many deprecation warnings with Pydantic v2 #676
Comments
Thank you for the catch. Fixed in #669 |
I'm testing #669 and am still seeing one warning:
|
I see this one too. It happens because Pydantic still has this field in the models. During initialization, I need to check all the fields that exist at the class level to do some pre-processing with some of them. So, I'm checking this one too. It is not used anywhere. I thought about adding an ignore list, but it seems redundant and potentially difficult to maintain the correct list of attributes to ignore. |
This issue is stale because it has been open 30 days with no activity. |
Looks like there are some more recent deprecation's are surfacing from pydantic/pydantic-core#980. E.g.,:
|
Also many new deprecation warnings with latest Pydantic v2.5.0 like this one:
|
I got some of these, too: Beanie version:
...at
...at |
This issue is stale because it has been open 30 days with no activity. |
Still relevant.
…________________________________
From: github-actions[bot] ***@***.***>
Sent: Thursday, December 14, 2023 10:50:02 PM
To: roman-right/beanie ***@***.***>
Cc: WarpedPixel ***@***.***>; Author ***@***.***>
Subject: Re: [roman-right/beanie] Beanie 1.21 still triggers many deprecation warnings with Pydantic v2 (Issue #676)
This issue is stale because it has been open 30 days with no activity.
—
Reply to this email directly, view it on GitHub<#676 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABUVFOB5V3ZMKJF7ZBV4MW3YJOUEVAVCNFSM6AAAAAA36YKI46VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJXGE2DGNZSGE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
This issue is stale because it has been open 30 days with no activity. |
Question for @roman-right - how long do you expect to support Pydantic v1 alongside v2? |
Hi @jhamman, |
Regarding the warnings, every new minor version of Pydantic introduces new deprecations. I will fix them if possible, but they will always be present. |
This issue is stale because it has been open 30 days with no activity. |
This issue was closed because it has been stalled for 14 days with no activity. |
Small contribution #897 |
Describe the bug
There are many Pydantic v2 deprecation warnings triggered by beanie code.
To Reproduce
run python code using beanie 1.21 with
-W error
to stop at the first warning.Example:
Triggered by this code in
beanie/odm/bulk.py
:Expected behavior
Clean run with no deprecations.
Additional context
I see primarily these 4 types of deprecation warnings:
The text was updated successfully, but these errors were encountered: