Skip to content

fontlab_echopy.tooling.signatures · declarations 001

Back to fontlab_echopy.tooling.signatures

TYPES module-attribute

TYPES

annotation

annotation(text: str) -> str

Map known native types and preserve valid forward references.

outside_literals

outside_literals(text: str) -> str

Mask quoted content while retaining offsets into the original signature.

python_signature

python_signature(text: str, method: bool) -> tuple[str, str] | None

Parse a Python signature with AST and annotate undocumented parameters.

signature

signature(text: str, name: str, method: bool = False) -> tuple[str, str]

Convert a documented signature; never infer missing native parameters.

split_params

split_params(text: str) -> list[str]

Split commas outside nested template, tuple, and default expressions.