mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-35614: Fix pydoc help() on metaclasses (#11357)
This commit is contained in:
parent
1d300ce1d8
commit
b539cef31c
3 changed files with 13 additions and 1 deletions
|
@ -1255,7 +1255,7 @@ location listed above.
|
|||
|
||||
# List the built-in subclasses, if any:
|
||||
subclasses = sorted(
|
||||
(str(cls.__name__) for cls in object.__subclasses__()
|
||||
(str(cls.__name__) for cls in type.__subclasses__(object)
|
||||
if not cls.__name__.startswith("_") and cls.__module__ == "builtins"),
|
||||
key=str.lower
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue