summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-06-01 08:38:24 (GMT)
committerGitHub <noreply@github.com>2019-06-01 08:38:24 (GMT)
commit70c5f2ae6e6a07d44a8d3f3202ea01bf697e05db (patch)
tree006049ed0835e9e68cd46cf7717027a0fe422436 /Doc/reference
parent2085bd0877e17ad4d98a4586d5eabb6faecbb190 (diff)
downloadcpython-70c5f2ae6e6a07d44a8d3f3202ea01bf697e05db.zip
cpython-70c5f2ae6e6a07d44a8d3f3202ea01bf697e05db.tar.gz
cpython-70c5f2ae6e6a07d44a8d3f3202ea01bf697e05db.tar.bz2
Use more PEP 570 syntax in the documentation. (GH-13720)
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/datamodel.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index 8b4d889..c566dfd 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -1809,7 +1809,7 @@ class defining the method.
class, as in::
class Philosopher:
- def __init_subclass__(cls, default_name, **kwargs):
+ def __init_subclass__(cls, /, default_name, **kwargs):
super().__init_subclass__(**kwargs)
cls.default_name = default_name