diff options
author | Shantanu <12621235+hauntsaninja@users.noreply.github.com> | 2022-05-02 23:08:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-02 23:08:28 (GMT) |
commit | ebb8b512e959ca1a0a506ac0f0faf461b1b2ff85 (patch) | |
tree | f0e20c41c7c0c2e504d2f901f2b8dbcafbea8f58 /Misc | |
parent | aff8c4f4884fe5ffb2059c2ac9485ded3bba3f3c (diff) | |
download | cpython-ebb8b512e959ca1a0a506ac0f0faf461b1b2ff85.zip cpython-ebb8b512e959ca1a0a506ac0f0faf461b1b2ff85.tar.gz cpython-ebb8b512e959ca1a0a506ac0f0faf461b1b2ff85.tar.bz2 |
gh-91621: Fix typing.get_type_hints for collections.abc.Callable (#91656)
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
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-04-18-18-55-21.gh-issue-91621.ACNlda.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-04-18-18-55-21.gh-issue-91621.ACNlda.rst b/Misc/NEWS.d/next/Library/2022-04-18-18-55-21.gh-issue-91621.ACNlda.rst new file mode 100644 index 0000000..b9e68d2 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-04-18-18-55-21.gh-issue-91621.ACNlda.rst @@ -0,0 +1 @@ +Fix :func:`typing.get_type_hints` for :class:`collections.abc.Callable`. Patch by Shantanu Jain. |