Skip to content
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

Properly rebuild the FieldInfo when a forward ref gets evaluated #7698

Merged
merged 2 commits into from Sep 29, 2023

Conversation

dmontagu
Copy link
Contributor

Closes #3282.

@adriangb can you imagine any problems with this? Also, do you object to the access to the "private" attribute _attributes_set? If so, we could add a "public" method to the FieldInfo for updating one from another like this.

@cloudflare-pages
Copy link

cloudflare-pages bot commented Sep 28, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1819f20
Status: ✅  Deploy successful!
Preview URL: https://c49f9c6f.pydantic-docs2.pages.dev
Branch Preview URL: https://dmontagu-fix-3282.pydantic-docs2.pages.dev

View logs

@dmontagu dmontagu merged commit 0c54c35 into main Sep 29, 2023
60 of 61 checks passed
@dmontagu dmontagu deleted the dmontagu/fix-3282 branch September 29, 2023 13:23
@hasier
Copy link

hasier commented Nov 16, 2023

I'm not sure how you handle backporting fixes to v1.10.X, it feels to me like you cherry-pick commits on that branch, and I see this commit is not there? I think this is the root cause of an issue I am facing in v1.10.13 too and I was wondering if this change is something you could backport too? In the original issue this was reported in v1.X.X as well, so I guess that's the way to go to fully close the issue. Apologies if this is something you handle differently!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
relnotes-fix Used for bugfixes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Field metadata from Annotated is lost after a call to update_forward_refs
3 participants