mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-33018: Improve issubclass() error checking and message. (GH-5944)
This improves error message for situations when a non-class is checked w.r.t. an abstract base class.
This commit is contained in:
parent
d93b5161af
commit
40472dd42d
4 changed files with 11 additions and 0 deletions
|
@ -202,6 +202,7 @@ Dillon Brock
|
|||
Richard Brodie
|
||||
Michael Broghton
|
||||
Ammar Brohi
|
||||
Josh Bronson
|
||||
Daniel Brotsky
|
||||
Jean Brouwers
|
||||
Gary S. Brown
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
Improve consistency of errors raised by ``issubclass()`` when called with a
|
||||
non-class and an abstract base class as the first and second arguments,
|
||||
respectively. Patch by Josh Bronson.
|
Loading…
Add table
Add a link
Reference in a new issue