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

gh-101015: Fix typing.get_type_hints with unpacked *tuple (PEP 646) #101031

Merged
merged 6 commits into from
Jan 23, 2023

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Jan 14, 2023

Couple of thoughts:

  1. ForwardRef has way too many flags
  2. This solution feels hacky (just like any other typing.py fix 😆), better ideas are welcome

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

This looks great @sobolevn -- thank you! I don't think it's any more hacky than the current code ;)

Just a small nit with the NEWS entry:

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

The Windows test failure is unrelated

@AlexWaygood AlexWaygood changed the title gh-101015: Fix typing.ForwardRef with *tuple unpack gh-101015: Fix typing.get_type_hints with unpacked *tuple (PEP 646) Jan 23, 2023
@AlexWaygood AlexWaygood merged commit 807d6b5 into python:main Jan 23, 2023
@miss-islington
Copy link
Contributor

Thanks @sobolevn for the PR, and @AlexWaygood for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-101254 is a backport of this pull request to the 3.11 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Jan 23, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 23, 2023
…PEP 646) (pythonGH-101031)

(cherry picked from commit 807d6b5)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
miss-islington added a commit that referenced this pull request Jan 23, 2023
…6) (GH-101031)

(cherry picked from commit 807d6b5)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants