PyDocs

Nav

Python Language Services

FunctionDef

ast

class
  • FunctionDef(name, args, body, decorator_list, returns, type_comment, type_params)
FunctionDef(identifier name, arguments args, stmt* body, expr* decorator_list, expr? returns, string? type_comment, type_param* type_params)
Changed in 3.12
  • 3.12: Added type_params.
Members of FunctionDef

t

type_comment
type_comment is an optional string with the type annotation as a comment.
0 Examples
No examples for ast/FunctionDef.
See Also
No see-alsos for ast/FunctionDef
0 Notes
No notes for FunctionDef