diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2024-02-11 13:19:44 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-11 13:19:44 (GMT) |
| commit | 2939ad02be62110ffa2ac6c4d9211c85e1d1720f (patch) | |
| tree | ea81ce4398d6401329b434ac36acf34c6ed60bcb /Lib/test/test_enum.py | |
| parent | b1043607884d774acabd255ecdcebb159f76a2fb (diff) | |
| download | cpython-2939ad02be62110ffa2ac6c4d9211c85e1d1720f.zip cpython-2939ad02be62110ffa2ac6c4d9211c85e1d1720f.tar.gz cpython-2939ad02be62110ffa2ac6c4d9211c85e1d1720f.tar.bz2 | |
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.
Diffstat (limited to 'Lib/test/test_enum.py')
| -rw-r--r-- | Lib/test/test_enum.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_enum.py b/Lib/test/test_enum.py index f750333..5d7dae8 100644 --- a/Lib/test/test_enum.py +++ b/Lib/test/test_enum.py @@ -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) | | ---------------------------------------------------------------------- |
