Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix deprecation warning under Pydantic 2.11#2076

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

medaminezghal
Copy link
Contributor

This will fix thePydanticDeprecatedSince211 errors that come frompydantic>=2.11 but it will fails becausemisteralai should also edit it's code.

@Kludex
Copy link
Member

@Viicos previous versions of Pydantic don't support this, right?

@Viicos
Copy link
Member

@Viicos previous versions of Pydantic don't support this, right?

This should be working (both keyword and positional argument forconfig works in <2.11), but the version bump would have to be removed.

@ViicosViicos changed the titleThis will fix PydanticDeprecatedSince211 errorsFix deprecation warning under Pydantic 2.11Jun 26, 2025
@medaminezghal
Copy link
ContributorAuthor

@Viicos I solved the problems

@medaminezghal
Copy link
ContributorAuthor

@Viicos should I also revert the mistralai version?

@Viicos
Copy link
Member

@Viicos should I also revert the mistralai version?

Yes I think so, if the deprecation warning was present in an older mistralai version, it isn't an issue on our end (until we actually bump the minimum supported Pydantic version to 2.11, and as such enable testing on this version).

@medaminezghal
Copy link
ContributorAuthor

@Viicos I think it can be merged now if the tests pass

Copy link
Member

@ViicosViicos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

medaminezghal reacted with heart emoji
@ViicosViicos merged commit1c4438e intopydantic:mainJun 26, 2025
16 checks passed
@medaminezghalmedaminezghal deleted the fix-PydanticDeprecatedSince211-tests branchJune 26, 2025 08:47
@medaminezghal
Copy link
ContributorAuthor

@Viicos I've made aPR inmistralai package to fixPydanticDeprecatedSince211 that come from it in the tests.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ViicosViicosViicos approved these changes

Assignees

@ViicosViicos

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@medaminezghal@Kludex@Viicos

[8]ページ先頭

©2009-2025 Movatter.jp