summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2022-01-26 10:06:10 (GMT)
committerGitHub <noreply@github.com>2022-01-26 10:06:10 (GMT)
commitb9d8980d89bfaa4bf16d60f0488adcc9d2cbf5ef (patch)
tree9aedd5f139c75c9f5d653bdb734a93de7a68235d /Doc/library
parent84f093918a4be663775afe2933f4be86f72fe495 (diff)
downloadcpython-b9d8980d89bfaa4bf16d60f0488adcc9d2cbf5ef.zip
cpython-b9d8980d89bfaa4bf16d60f0488adcc9d2cbf5ef.tar.gz
cpython-b9d8980d89bfaa4bf16d60f0488adcc9d2cbf5ef.tar.bz2
bpo-43698: do not use `...` as argument name in docs (GH-30502)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/abc.rst10
-rw-r--r--Doc/library/functions.rst2
2 files changed, 6 insertions, 6 deletions
diff --git a/Doc/library/abc.rst b/Doc/library/abc.rst
index 1a6ed47..3b74622 100644
--- a/Doc/library/abc.rst
+++ b/Doc/library/abc.rst
@@ -186,15 +186,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 059a058..9c061bc 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -248,7 +248,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.