mirror of
https://github.com/python/cpython.git
synced 2025-09-14 04:37:29 +00:00
Issue #23572: Fixed functools.singledispatch on classes with falsy metaclasses.
Patch by Ethan Furman.
This commit is contained in:
parent
f5e0c41d6d
commit
77a8cd65be
3 changed files with 42 additions and 1 deletions
|
@ -567,7 +567,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