mirror of https://github.com/python/cpython
class definitions only get argument lists (closes #27042)
This commit is contained in:
parent
bc7ee43a6d
commit
54044d605f
|
@ -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…
Reference in New Issue