API reference

python:astx:astx.callables.FunctionPrototype.__init__

method __init__

__init__(name: str, args: Arguments, return_type: AnyType, scope: ScopeKind = ScopeKind.global_, visibility: VisibilityKind = VisibilityKind.public, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None

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

Initialize the FunctionPrototype instance.

Parameters

Search documentation

Type to search.