Composes a Python-style call signature string for a method or function.
Returns:
A signature string such as “name(self, x: int) -> str”.
Methods
_compile_py_signature
_compile_py_signature(name: str, parameters: List, return_type: Optional, has_self: bool) -> str
Composes a Python-style call signature string for a method or function.
Returns:
A signature string such as “name(self, x: int) -> str”.
| Parameter | Type | Description |
|---|---|---|
| name | str | The method or function name. |
| parameters | List | Parsed parameters to render, in order. |
| return_type | Optional | The return type annotation text, or None/empty to omit it. |
| has_self | bool | Whether to prepend a bare self parameter. |
Generated with Flude
Copyright © 2026