llama-stack-mirror/llama_stack/distribution
Ihar Hrachyshka 9e6561a1ec
chore: enable pyupgrade fixes (#1806)
# What does this PR do?

The goal of this PR is code base modernization.

Schema reflection code needed a minor adjustment to handle UnionTypes
and collections.abc.AsyncIterator. (Both are preferred for latest Python
releases.)

Note to reviewers: almost all changes here are automatically generated
by pyupgrade. Some additional unused imports were cleaned up. The only
change worth of note can be found under `docs/openapi_generator` and
`llama_stack/strong_typing/schema.py` where reflection code was updated
to deal with "newer" types.

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-05-01 14:23:50 -07:00
..
routers chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
server chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
store chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
ui chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
utils chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
access_control.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
build.py fix: enforce stricter ASCII rules lint rules in Ruff (#2062) 2025-04-30 18:05:27 +02:00
build_conda_env.sh chore: remove straggler references to llama-models (#1345) 2025-03-01 14:26:03 -08:00
build_container.sh feat: include run.yaml in the container image (#2005) 2025-04-24 11:29:53 +02:00
build_venv.sh chore: remove straggler references to llama-models (#1345) 2025-03-01 14:26:03 -08:00
client.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
common.sh feat(pre-commit): enhance pre-commit hooks with additional checks (#2014) 2025-04-30 11:35:49 -07:00
configure.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
datatypes.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
distribution.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
inspect.py feat: add health to all providers through providers endpoint (#1418) 2025-04-14 11:59:36 +02:00
library_client.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
providers.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
request_headers.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
resolver.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
stack.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
start_stack.sh docs: Update docs and fix warning in start-stack.sh (#1937) 2025-04-11 16:26:17 -07:00