diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-07-14 04:55:45 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-14 04:55:45 (GMT) |
| commit | b42eee78e7651693aa38c390f577e5d499dcf55d (patch) | |
| tree | e62a9959655eea8d452340750a1f3fbbfb2ba021 /Python | |
| parent | bb260c2a212aee2a7d7a32bf5208fd554bf72713 (diff) | |
| download | cpython-b42eee78e7651693aa38c390f577e5d499dcf55d.zip cpython-b42eee78e7651693aa38c390f577e5d499dcf55d.tar.gz cpython-b42eee78e7651693aa38c390f577e5d499dcf55d.tar.bz2 | |
bpo-44606: Fix __instancecheck__ and __subclasscheck__ for the union type. (GH-27120)
* Fix issubclass() for None.
E.g. issubclass(type(None), int | None) returns now True.
* Fix issubclass() for virtual subclasses.
E.g. issubclass(dict, int | collections.abc.Mapping) returns now True.
* Fix crash in isinstance() if the check for one of items raises exception.
(cherry picked from commit 81989058de381108dfd0a4255b93d4fb34417002)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python')
0 files changed, 0 insertions, 0 deletions
