diff options
author | Yurii Karabas <1998uriyyo@gmail.com> | 2022-04-28 15:24:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-28 15:24:19 (GMT) |
commit | 0ef8d921f5c6945aa8f386e472c4110b81ac773d (patch) | |
tree | 4c06fd7aa389289ccf3404fec29402f891d3ab91 /Misc | |
parent | 4ed3900041c688a02dca1eb3323083d720dd0d93 (diff) | |
download | cpython-0ef8d921f5c6945aa8f386e472c4110b81ac773d.zip cpython-0ef8d921f5c6945aa8f386e472c4110b81ac773d.tar.gz cpython-0ef8d921f5c6945aa8f386e472c4110b81ac773d.tar.bz2 |
gh-91603: Speed up isinstance/issubclass on union types (GH-91631)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2022-04-17-11-03-45.gh-issue-91603.hYw1Lv.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-04-17-11-03-45.gh-issue-91603.hYw1Lv.rst b/Misc/NEWS.d/next/Core and Builtins/2022-04-17-11-03-45.gh-issue-91603.hYw1Lv.rst new file mode 100644 index 0000000..957bd5e --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2022-04-17-11-03-45.gh-issue-91603.hYw1Lv.rst @@ -0,0 +1,2 @@ +Speed up :func:`isinstance` and :func:`issubclass` checks for :class:`types.UnionType`. +Patch by Yurii Karabas. |