mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-97959: Fix rendering of routines in pydoc (GH-113941)
* Class methods no longer have "method of builtins.type instance" note. * Corresponding notes are now added for class and unbound methods. * Method and function aliases now have references to the module or the class where the origin was defined if it differs from the current. * Bound methods are now listed in the static methods section. * Methods of builtin classes are now supported as well as methods of Python classes.
This commit is contained in:
parent
b104360788
commit
2939ad02be
5 changed files with 333 additions and 72 deletions
|
@ -4851,22 +4851,22 @@ class Color(enum.Enum)
|
|||
| The value of the Enum member.
|
||||
|
|
||||
| ----------------------------------------------------------------------
|
||||
| Methods inherited from enum.EnumType:
|
||||
| Static methods inherited from enum.EnumType:
|
||||
|
|
||||
| __contains__(value) from enum.EnumType
|
||||
| __contains__(value)
|
||||
| Return True if `value` is in `cls`.
|
||||
|
|
||||
| `value` is in `cls` if:
|
||||
| 1) `value` is a member of `cls`, or
|
||||
| 2) `value` is the value of one of the `cls`'s members.
|
||||
|
|
||||
| __getitem__(name) from enum.EnumType
|
||||
| __getitem__(name)
|
||||
| Return the member matching `name`.
|
||||
|
|
||||
| __iter__() from enum.EnumType
|
||||
| __iter__()
|
||||
| Return members in definition order.
|
||||
|
|
||||
| __len__() from enum.EnumType
|
||||
| __len__()
|
||||
| Return the number of members (no aliases)
|
||||
|
|
||||
| ----------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue