mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Use more PEP 570 syntax in the documentation. (GH-13720)
This commit is contained in:
parent
2085bd0877
commit
70c5f2ae6e
4 changed files with 19 additions and 19 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue