THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
module documentation
Undocumented
| Class | __ |
No class docstring; 1/1 method documented |
| Function | _normalize |
Normalize and validate a type hint, returning its canonical string value. |
| Constant | _ALLOWED |
Undocumented |
@functools.lru_cache( maxsize=64)
def _normalize_type_hint(type_hint: str | EnvironmentValueType) -> str:
(source)
¶
Normalize and validate a type hint, returning its canonical string value.
Cached with lru_cache — type hints are a finite, known set so repeated calls with the same hint become O(1) dict lookups after the first call.
| Parameters | |
typestr or EnvironmentValueType | The type hint to normalize. |
| Returns | |
str | The canonical string value of the type hint. |
| Raises | |
RuntimeError | If the type hint string is not a valid EnvironmentValueType name. |