Skip to content

Fix issue where annotations are not properly traversed for Python 3.8 #10

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

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

rasmysamy
Copy link
Collaborator

This PR properly traverses Python 3.8 annotations to recursively apply _adjust_annotations, which fixes bugs where Pydantic models are not properly serialized.

@rasmysamy rasmysamy self-assigned this Nov 19, 2024
@rasmysamy rasmysamy force-pushed the bugfix/adjust_annotations_py38 branch from 8c2a374 to 9bb6af5 Compare November 19, 2024 14:57
@rasmysamy rasmysamy force-pushed the bugfix/adjust_annotations_py38 branch from 9bb6af5 to 360d2a6 Compare November 19, 2024 15:53
Copy link

Test Results

0 tests  ±0   0 ✅ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ❌ ±0 

Results for commit 360d2a6. ± Comparison against base commit cf009ac.

Copy link
Collaborator

@ptomecek ptomecek left a comment

Choose a reason for hiding this comment

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

Approved, but note that the aim is to completely remove python 38 support soon as it is EOL. Also worth noting that all of the annotation adjustment stuff should go away once this issue is closed: pydantic/pydantic#9670, because then we can just switch to leveraging the serialize_as_any functionality from pydantic.

@rasmysamy rasmysamy merged commit bd5ba73 into main Nov 19, 2024
4 checks passed
@rasmysamy rasmysamy deleted the bugfix/adjust_annotations_py38 branch November 19, 2024 16:49
@timkpaine timkpaine added the type: bug Concrete, reproducible bugs label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Concrete, reproducible bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants