mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
class definitions only get argument lists (closes #27042)
This commit is contained in:
parent
bc7ee43a6d
commit
54044d605f
1 changed files with 1 additions and 1 deletions
|
|
@ -604,7 +604,7 @@ A class definition defines a class object (see section :ref:`types`):
|
|||
|
||||
.. productionlist::
|
||||
classdef: [`decorators`] "class" `classname` [`inheritance`] ":" `suite`
|
||||
inheritance: "(" [`parameter_list`] ")"
|
||||
inheritance: "(" [`argument_list`] ")"
|
||||
classname: `identifier`
|
||||
|
||||
A class definition is an executable statement. The inheritance list usually
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue