bpo-44490: Improve typing module compatibility with types.Union (GH-27048)

This commit is contained in:
Yurii Karabas 2021-07-17 06:33:40 +03:00 committed by GitHub
parent f783428a23
commit bf89ff96e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 40 additions and 7 deletions

View file

@ -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.