Skip to content

fix/#652#668

Merged
skrawcz merged 9 commits intoapache:mainfrom
vbhavh:main
Apr 4, 2026
Merged

fix/#652#668
skrawcz merged 9 commits intoapache:mainfrom
vbhavh:main

Conversation

@vbhavh
Copy link
Copy Markdown
Contributor

@vbhavh vbhavh commented Mar 3, 2026

fix of issue: #652

Changes:
type(model).model_fields accesses the attribute on the class, which is the correct way per Pydantic v2.11+.

@skrawcz
Copy link
Copy Markdown
Contributor

skrawcz commented Mar 6, 2026

this needs minimum pin in pyproject.toml to accompany this

@vbhavh
Copy link
Copy Markdown
Contributor Author

vbhavh commented Mar 6, 2026

@skrawcz done.

@skrawcz
Copy link
Copy Markdown
Contributor

skrawcz commented Mar 6, 2026

@vbhavh I think we want it for all pydantic dependencies in pyproject.toml.

@vbhavh
Copy link
Copy Markdown
Contributor Author

vbhavh commented Mar 8, 2026

hey @skrawcz, is it solved now ? I have done it for all pydantic deps.

@elijahbenizzy
Copy link
Copy Markdown
Contributor

Could we add a test that confirms this?

@vbhavh
Copy link
Copy Markdown
Contributor Author

vbhavh commented Mar 13, 2026

Could we add a test that confirms this?

i'll add one in test/integrations.

@vbhavh
Copy link
Copy Markdown
Contributor Author

vbhavh commented Mar 14, 2026

@elijahbenizzy done.

Copy link
Copy Markdown
Collaborator

@andreahlert andreahlert left a comment

Choose a reason for hiding this comment

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

Tested locally with pydantic 2.12.5. All 32 existing tests pass. The core fix (accessing model_fields from the class) works correctly. However, this PR has several structural issues that need addressing.

@vbhavh
Copy link
Copy Markdown
Contributor Author

vbhavh commented Mar 20, 2026

On my way to fix all structural issues.

@vbhavh
Copy link
Copy Markdown
Contributor Author

vbhavh commented Mar 29, 2026

hello @andreahlert, i have made all your asked structural changes. Thanks.

@andreahlert andreahlert added kind/bug Something is broken area/typing Mypy, type hints, pydantic labels Mar 30, 2026
@skrawcz skrawcz merged commit 8baae12 into apache:main Apr 4, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/typing Mypy, type hints, pydantic kind/bug Something is broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants