diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-12-31 08:02:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-31 08:02:58 (GMT) |
commit | b2ac70a62ad1be8e037ce45ccf5f1b753ea5e64b (patch) | |
tree | 899c95450277b7e7e8bb92c2953186c0a8308d7e /Misc | |
parent | 7c72c1f0dfff8950e3c6f656307099f1b0a4f8a3 (diff) | |
download | cpython-b2ac70a62ad1be8e037ce45ccf5f1b753ea5e64b.zip cpython-b2ac70a62ad1be8e037ce45ccf5f1b753ea5e64b.tar.gz cpython-b2ac70a62ad1be8e037ce45ccf5f1b753ea5e64b.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2024-12-30-20-48-28.gh-issue-88834.RIvgwc.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-12-30-20-48-28.gh-issue-88834.RIvgwc.rst b/Misc/NEWS.d/next/Library/2024-12-30-20-48-28.gh-issue-88834.RIvgwc.rst new file mode 100644 index 0000000..ca43f91 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-12-30-20-48-28.gh-issue-88834.RIvgwc.rst @@ -0,0 +1,3 @@ +Unify the instance check for :class:`typing.Union` and +:class:`types.UnionType`: :class:`!Union` now uses the instance checks +against its parameters instead of the subclass checks. |