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

Don't always require typing.Generic as a base for partially parametrized models #7119

Merged
merged 1 commit into from Aug 15, 2023

Conversation

dmontagu
Copy link
Contributor

@dmontagu dmontagu commented Aug 14, 2023

Closes #6980

I won't be surprised if there are still cases that aren't properly handled by this change, but this resolves the reported issue, and given the complexity of the generics stuff I think our best bet in the long run is to just rely on converting reported issues into tests, and making sure all tests pass.

Selected Reviewer: @adriangb

@cloudflare-pages
Copy link

cloudflare-pages bot commented Aug 14, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9232467
Status: ✅  Deploy successful!
Preview URL: https://d7323456.pydantic-docs2.pages.dev
Branch Preview URL: https://dmontagu-stop-always-requiri.pydantic-docs2.pages.dev

View logs

@dmontagu dmontagu force-pushed the dmontagu/stop-always-requiring-typing-generic branch from 47d9928 to 9232467 Compare August 14, 2023 16:22
@dmontagu
Copy link
Contributor Author

please review

Copy link
Member

@adriangb adriangb left a comment

Choose a reason for hiding this comment

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

Looks good I remember I wanted this but couldn't figure out how to do it, good stuff!

@adriangb adriangb merged commit 0454fab into main Aug 15, 2023
49 checks passed
@adriangb adriangb deleted the dmontagu/stop-always-requiring-typing-generic branch August 15, 2023 16:13
dapper91 added a commit to dapper91/pydantic-xml that referenced this pull request Aug 17, 2023
dapper91 added a commit to dapper91/pydantic-xml that referenced this pull request Aug 17, 2023
dapper91 added a commit to dapper91/pydantic-xml that referenced this pull request Aug 17, 2023
dapper91 added a commit to dapper91/pydantic-xml that referenced this pull request Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect detection of generics with nested classes
2 participants