diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-01-26 12:42:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-26 12:42:39 (GMT) |
commit | 49971b2d1890c15eeec2d83ea3e8d178f266c4f9 (patch) | |
tree | 7f9aaf37830724712c21ecf69536f30b8f2926f3 /Doc/library | |
parent | 04772cd6f164c1219c8c74d55626ba114f01aa96 (diff) | |
download | cpython-49971b2d1890c15eeec2d83ea3e8d178f266c4f9.zip cpython-49971b2d1890c15eeec2d83ea3e8d178f266c4f9.tar.gz cpython-49971b2d1890c15eeec2d83ea3e8d178f266c4f9.tar.bz2 |
bpo-43698: do not use `...` as argument name in docs (GH-30502)
(cherry picked from commit b9d8980d89bfaa4bf16d60f0488adcc9d2cbf5ef)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/abc.rst | 10 | ||||
-rw-r--r-- | Doc/library/functions.rst | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Doc/library/abc.rst b/Doc/library/abc.rst index 424ae54..35be01e 100644 --- a/Doc/library/abc.rst +++ b/Doc/library/abc.rst @@ -185,15 +185,15 @@ The :mod:`abc` module also provides the following decorator: class C(ABC): @abstractmethod - def my_abstract_method(self, ...): + def my_abstract_method(self, arg1): ... @classmethod @abstractmethod - def my_abstract_classmethod(cls, ...): + def my_abstract_classmethod(cls, arg2): ... @staticmethod @abstractmethod - def my_abstract_staticmethod(...): + def my_abstract_staticmethod(arg3): ... @property @@ -255,7 +255,7 @@ The :mod:`abc` module also supports the following legacy decorators: class C(ABC): @classmethod @abstractmethod - def my_abstract_classmethod(cls, ...): + def my_abstract_classmethod(cls, arg): ... @@ -276,7 +276,7 @@ The :mod:`abc` module also supports the following legacy decorators: class C(ABC): @staticmethod @abstractmethod - def my_abstract_staticmethod(...): + def my_abstract_staticmethod(arg): ... diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 8df557e..9a9c707 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -210,7 +210,7 @@ are always available. They are listed here in alphabetical order. class C: @classmethod - def f(cls, arg1, arg2, ...): ... + def f(cls, arg1, arg2): ... The ``@classmethod`` form is a function :term:`decorator` -- see :ref:`function` for details. |