ORIONIS API REFERENCE

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.

class documentation

class __ValidateTypes: (source)

View In Hierarchy

Undocumented

Method __call__ Validate and determine the type of a given value.
def __call__(self, *, value: str | float | bool | list | dict | tuple | set, type_hint: str | EnvironmentValueType | None = None) -> str: (source)

Validate and determine the type of a given value.

Parameters
value:str, int, float, bool, list, dict, tuple, or setThe value whose type is to be validated and determined.
type_hint:str or EnvironmentValueType, optionalAn optional type hint specifying the expected type. Can be a string or an EnvironmentValueType.
Returns
strThe determined type as a string, either from the type hint or inferred from the value.
Raises
TypeErrorIf value type is unsupported or type_hint has invalid type.
RuntimeErrorIf type_hint is not a valid EnvironmentValueType.