API reference

python:astx:astx.FunctionDef

class FunctionDef

FunctionDef(prototype: FunctionPrototype, body: Block, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)

Source: packages/astx/src/astx/callables.py:464

Declared as: python:astx:astx.callables.FunctionDef

AST class for function definition.

Attributes

Methods

Properties

Attributes

Search documentation

Type to search.