mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Issue #23572: Fixed functools.singledispatch on classes with falsy metaclasses.
Patch by Ethan Furman.
This commit is contained in:
parent
a78ebe6323
commit
ab7cc7598a
3 changed files with 22 additions and 1 deletions
|
|
@ -551,7 +551,7 @@ def _c3_merge(sequences):
|
|||
break # reject the current head, it appears later
|
||||
else:
|
||||
break
|
||||
if not candidate:
|
||||
if candidate is None:
|
||||
raise RuntimeError("Inconsistent hierarchy")
|
||||
result.append(candidate)
|
||||
# remove the chosen candidate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue