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
-
name — Type: str
-
args — Type: Arguments
-
return_type — Type: AnyType
-
scope — Type: ScopeKind
-
visibility — Type: VisibilityKind
-
loc — Type: SourceLocation
-
parent — Type: Optional[ASTNodes]