yera.apps.typing.utils

Helpers for the app module's typing infrastructure.

Symbols

def get_type_name — Render a type hint as a human-readable string.

get_type_name

get_type_name(
    type_hint: Any,
) → str

Render a type hint as a human-readable string.

Handles None, parameterised generics (list[int], dict[str, Foo], etc.), classes with a __name__, and falls back to str(type_hint) for anything else.