]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-88834: Unify the instance check for typing.Union and types.UnionType (GH-128363)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 31 Dec 2024 08:02:58 +0000 (10:02 +0200)
committerGitHub <noreply@github.com>
Tue, 31 Dec 2024 08:02:58 +0000 (10:02 +0200)
commitb2ac70a62ad1be8e037ce45ccf5f1b753ea5e64b
tree899c95450277b7e7e8bb92c2953186c0a8308d7e
parent7c72c1f0dfff8950e3c6f656307099f1b0a4f8a3
gh-88834: Unify the instance check for typing.Union and types.UnionType (GH-128363)

Union now uses the instance checks against its parameters instead of
the subclass checks.
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]