diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2021-07-14 04:35:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-14 04:35:39 (GMT) |
commit | 81989058de381108dfd0a4255b93d4fb34417002 (patch) | |
tree | ed13e2a5964c4efb0fe450b6af8db5ad2e2233ff /Python/structmember.c | |
parent | 0093876328afa330224c9d887c18dee0b3117852 (diff) | |
download | cpython-81989058de381108dfd0a4255b93d4fb34417002.zip cpython-81989058de381108dfd0a4255b93d4fb34417002.tar.gz cpython-81989058de381108dfd0a4255b93d4fb34417002.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.
Diffstat (limited to 'Python/structmember.c')
0 files changed, 0 insertions, 0 deletions