Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60ebb8b commit 33d1ae8Copy full SHA for 33d1ae8
1 file changed
Doc/reference/compound_stmts.rst
@@ -410,7 +410,7 @@ A function definition defines a user-defined function object (see section
410
:ref:`types`):
411
412
.. productionlist::
413
- funcdef: [`decorators`] "def" `funcname` "(" [`parameter_list`] ")" ["->" `expression`]? ":" `suite`
+ funcdef: [`decorators`] "def" `funcname` "(" [`parameter_list`] ")" ["->" `expression`] ":" `suite`
414
decorators: `decorator`+
415
decorator: "@" `dotted_name` ["(" [`argument_list` [","]] ")"] NEWLINE
416
dotted_name: `identifier` ("." `identifier`)*
0 commit comments