llama-stack-mirror/llama_stack/strong_typing
Ihar Hrachyshka cd38b2594e fix: Support types.UnionType in schemas
Since Python 3.10, unions can be expressed as `type1 | type2`. Sadly,
while this is functionally equivalent to `Union[type1, type2]`, the type
of the expression is different (`types.UnionType`, not `typing.Union`).

We should handle both in schemas.

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-03-20 10:42:29 -04:00
..
__init__.py chore: move all Llama Stack types from llama-models to llama-stack (#1098) 2025-02-14 09:10:59 -08:00
auxiliary.py fix: direct client pydantic type casting (#1145) 2025-02-18 16:07:54 -08:00
classdef.py fix: direct client pydantic type casting (#1145) 2025-02-18 16:07:54 -08:00
core.py chore: move all Llama Stack types from llama-models to llama-stack (#1098) 2025-02-14 09:10:59 -08:00
deserializer.py fix: direct client pydantic type casting (#1145) 2025-02-18 16:07:54 -08:00
docstring.py chore: move all Llama Stack types from llama-models to llama-stack (#1098) 2025-02-14 09:10:59 -08:00
exception.py chore: move all Llama Stack types from llama-models to llama-stack (#1098) 2025-02-14 09:10:59 -08:00
inspection.py fix: direct client pydantic type casting (#1145) 2025-02-18 16:07:54 -08:00
mapping.py chore: move all Llama Stack types from llama-models to llama-stack (#1098) 2025-02-14 09:10:59 -08:00
name.py chore: move all Llama Stack types from llama-models to llama-stack (#1098) 2025-02-14 09:10:59 -08:00
py.typed chore: move all Llama Stack types from llama-models to llama-stack (#1098) 2025-02-14 09:10:59 -08:00
schema.py fix: Support types.UnionType in schemas 2025-03-20 10:42:29 -04:00
serialization.py chore: move all Llama Stack types from llama-models to llama-stack (#1098) 2025-02-14 09:10:59 -08:00
serializer.py fix: direct client pydantic type casting (#1145) 2025-02-18 16:07:54 -08:00
slots.py chore: move all Llama Stack types from llama-models to llama-stack (#1098) 2025-02-14 09:10:59 -08:00
topological.py chore: move all Llama Stack types from llama-models to llama-stack (#1098) 2025-02-14 09:10:59 -08:00