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

Add support for NotRequired generics in TypedDict #7932

Merged
merged 2 commits into from Oct 26, 2023

Conversation

sydney-runkle
Copy link
Member

@sydney-runkle sydney-runkle commented Oct 26, 2023

Change Summary

Add support for NotRequired generics in TypedDict

Related issue number

Fix #7931

Checklist

  • The pull request title is a good summary of the changes - it will be used in the changelog
  • Unit tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

Selected Reviewer: @adriangb

@sydney-runkle sydney-runkle added the relnotes-fix Used for bugfixes. label Oct 26, 2023
@cloudflare-pages
Copy link

cloudflare-pages bot commented Oct 26, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 257ddd6
Status: ✅  Deploy successful!
Preview URL: https://2b106fcc.pydantic-docs2.pages.dev
Branch Preview URL: https://fix-tuple-handling-for-gener.pydantic-docs2.pages.dev

View logs

@sydney-runkle
Copy link
Member Author

Please review

tests/test_generics.py Outdated Show resolved Hide resolved
pydantic/_internal/_generics.py Show resolved Hide resolved
@sydney-runkle sydney-runkle enabled auto-merge (squash) October 26, 2023 14:05
@sydney-runkle sydney-runkle merged commit 064b24c into main Oct 26, 2023
59 checks passed
@sydney-runkle sydney-runkle deleted the fix-tuple-handling-for-generic-types branch October 26, 2023 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NotRequired receives (T,) instead of T in Generic TypedDict
3 participants