API reference
python:arx:arx.parser.declarations.DeclarationParserMixin.parse_callable_signature
method parse_callable_signature
parse_callable_signature(*, is_method: bool = False) -> tuple[astx.FunctionPrototype, Token | None, ParsedAnnotation | None]
Source: packages/arx/src/arx/parser/declarations.py:1085
Parse callable arguments, declaration modifiers, and return type.
Parenthesized parameters and the return tail may span lines. The modifier group belongs to the callable, not the returned value. Keep the next member's indentation intact for bodyless declarations.
Parameters
- is_method — Whether is method.; Type: bool
Returns
Parsed callable arguments, declaration modifiers, and return type.; Type: tuple[astx.FunctionPrototype, Token | None, ParsedAnnotation | None]