mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
bpo-44490: Improve typing module compatibility with types.Union (GH-27048)
This commit is contained in:
parent
f783428a23
commit
bf89ff96e6
5 changed files with 40 additions and 7 deletions
|
|
@ -0,0 +1,3 @@
|
|||
:mod:`typing` now searches for type parameters in ``types.Union`` objects.
|
||||
``get_type_hints`` will also properly resolve annotations with nested
|
||||
``types.Union`` objects. Patch provided by Yurii Karabas.
|
||||
Loading…
Add table
Add a link
Reference in a new issue