Skip to content

chore: access model_fields from class instead of instance#800

Merged
vdusek merged 1 commit intomasterfrom
fix/pydantic-model-fields-deprecation-warning
Feb 18, 2026
Merged

chore: access model_fields from class instead of instance#800
vdusek merged 1 commit intomasterfrom
fix/pydantic-model-fields-deprecation-warning

Conversation

@vdusek
Copy link
Contributor

@vdusek vdusek commented Feb 18, 2026

Summary

  • Access model_fields from the class (type(configuration).model_fields) instead of the instance (configuration.model_fields) in Configuration.from_configuration

Since Pydantic V2.11, accessing model_fields on an instance emits a PydanticDeprecatedSince211 deprecation warning (to be removed in V3.0).

Test plan

  • CI passes

🤖 Generated with Claude Code

Fixes PydanticDeprecatedSince211 warning about accessing model_fields
on an instance, which is deprecated since Pydantic V2.11.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vdusek vdusek added adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. labels Feb 18, 2026
@vdusek vdusek self-assigned this Feb 18, 2026
@vdusek vdusek requested a review from Pijukatel February 18, 2026 08:51
@github-actions github-actions bot added this to the 134th sprint - Tooling team milestone Feb 18, 2026
@codecov
Copy link

codecov bot commented Feb 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.54%. Comparing base (c0a74b9) to head (3f554f6).
⚠️ Report is 8 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #800      +/-   ##
==========================================
+ Coverage   85.50%   85.54%   +0.03%     
==========================================
  Files          46       46              
  Lines        2691     2691              
==========================================
+ Hits         2301     2302       +1     
+ Misses        390      389       -1     
Flag Coverage Δ
e2e 35.48% <0.00%> (ø)
integration 57.63% <0.00%> (+0.03%) ⬆️
unit 72.46% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@vdusek vdusek changed the title fix: access model_fields from class instead of instance chore: access model_fields from class instead of instance Feb 18, 2026
@vdusek vdusek merged commit 486ea01 into master Feb 18, 2026
58 of 59 checks passed
@vdusek vdusek deleted the fix/pydantic-model-fields-deprecation-warning branch February 18, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. claude-code-assisted t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants