◐ Shell
reader mode source ↗
Skip to content

gh-91621: Fix typing.get_type_hints for collections.abc.Callable#91656

Merged
JelleZijlstra merged 5 commits into
python:mainfrom
hauntsaninja:calltyp
May 2, 2022
Merged

gh-91621: Fix typing.get_type_hints for collections.abc.Callable#91656
JelleZijlstra merged 5 commits into
python:mainfrom
hauntsaninja:calltyp

Conversation

@hauntsaninja

@hauntsaninja hauntsaninja commented Apr 18, 2022

Copy link
Copy Markdown
Contributor

This mirrors logic in typing.get_args. The trickiness comes from how we
flatten args in collections.abc.Callable, see
https://bugs.python.org/issue42195

#91621

This mirrors logic in typing.get_args. The trickiness comes from how we
flatten args in collections.abc.Callable, see
https://bugs.python.org/issue42195
@hauntsaninja

Copy link
Copy Markdown
Contributor Author

I think we can skip news since this is just a fix for the unreleased #30900

@AlexWaygood AlexWaygood added type-bug An unexpected behavior, bug, or error topic-typing stdlib Standard Library Python modules in the Lib/ directory labels Apr 18, 2022
@AlexWaygood

Copy link
Copy Markdown
Member

I think we can skip news since this is just a fix for the unreleased #30900

Was #30900 not included in 3.11a7? If it was, then I think this probably does need a short NEWS entry :)

@Fidget-Spinner Fidget-Spinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hide comment

LGTM

@JelleZijlstra JelleZijlstra self-assigned this May 2, 2022
@JelleZijlstra JelleZijlstra merged commit ebb8b51 into python:main May 2, 2022
@hauntsaninja hauntsaninja deleted the calltyp branch May 2, 2022 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stdlib Standard Library Python modules in the Lib/ directory topic-typing type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants