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

Fix display_as_type for TypeAliasType in python 3.12 #7929

Merged
merged 1 commit into from Oct 25, 2023

Conversation

dmontagu
Copy link
Contributor

@adriangb any issues with this? I think you added those xfails, this change seems reasonable to me since it only affects cases which would currently raise an AttributeError when trying to display a type. And the comment I added should be enough to indicate why it was added in case it becomes unnecessary in the future and anyone otherwise wants to remove it.

Related to #7893; if this gets merged then probably the xfail on the test added there will need to be removed before merging (or that xfail will need to be removed as part of this PR if that PR is merged first).

@cloudflare-pages
Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7d2882d
Status: ✅  Deploy successful!
Preview URL: https://318367bf.pydantic-docs2.pages.dev
Branch Preview URL: https://remove-typealiastype-xfails.pydantic-docs2.pages.dev

View logs

Copy link
Member

@sydney-runkle sydney-runkle left a comment

Choose a reason for hiding this comment

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

Nice 🏆

@sydney-runkle sydney-runkle added the relnotes-fix Used for bugfixes. label Oct 25, 2023
@sydney-runkle sydney-runkle merged commit aa73451 into main Oct 25, 2023
60 of 61 checks passed
@sydney-runkle sydney-runkle deleted the remove-typealiastype-xfails branch October 25, 2023 21:56
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.

None yet

3 participants