Commit 486ea01
chore: access model_fields from class instead of instance (#800)
## 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).
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 8a345bd commit 486ea01
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
508 | | - | |
| 508 | + | |
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
0 commit comments