diff options
author | Yurii Karabas <1998uriyyo@gmail.com> | 2021-07-29 19:44:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-29 19:44:48 (GMT) |
commit | 8182c8329c709f42218a8a17d81639ece5b7b627 (patch) | |
tree | f79f5bdea92284fe69a4e6f671b6e7aaeece05fc /Misc | |
parent | 6b61d74a3bab43a44fa47b1facd1bec3d74e12b1 (diff) | |
download | cpython-8182c8329c709f42218a8a17d81639ece5b7b627.zip cpython-8182c8329c709f42218a8a17d81639ece5b7b627.tar.gz cpython-8182c8329c709f42218a8a17d81639ece5b7b627.tar.bz2 |
bpo-44662: Add ability to annotate types.Union (#27214)
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2021-07-17-13-41-58.bpo-44662.q22kWR.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2021-07-17-13-41-58.bpo-44662.q22kWR.rst b/Misc/NEWS.d/next/Core and Builtins/2021-07-17-13-41-58.bpo-44662.q22kWR.rst new file mode 100644 index 0000000..c165774 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2021-07-17-13-41-58.bpo-44662.q22kWR.rst @@ -0,0 +1,3 @@ +Add ``__module__`` to ``types.Union``. This also fixes +``types.Union`` issues with ``typing.Annotated``. Patch provided by +Yurii Karabas. |