]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-88834: Unify the instance check for typing.Union and types.UnionType (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 31 Dec 2024 18:45:03 +0000 (19:45 +0100)
committerGitHub <noreply@github.com>
Tue, 31 Dec 2024 18:45:03 +0000 (18:45 +0000)
commit08ae06fe46a0fef25432123aacd57a4289335fc0
tree494cfa6fcccffaddf56cd6c423a5638692e10681
parent62729d79206014886f5de2b62a5824436e18b66f
[3.13] gh-88834: Unify the instance check for typing.Union and types.UnionType (GH-128363) (GH-128370)

Union now uses the instance checks against its parameters instead of
the subclass checks.
(cherry picked from commit b2ac70a62ad1be8e037ce45ccf5f1b753ea5e64b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_typing.py
Lib/typing.py
Misc/NEWS.d/next/Library/2024-12-30-20-48-28.gh-issue-88834.RIvgwc.rst [new file with mode: 0644]