fix(mypy): suppress uvicorn.run dict unpacking type errors in run.py

This commit is contained in:
Ashwin Bharambe 2025-10-27 23:37:11 -07:00
parent 2ff3ae3fc7
commit fc847318e4

View file

@ -168,7 +168,7 @@ class StackRun(Subcommand):
# Another approach would be to ignore SIGINT entirely - let uvicorn handle it through its own # Another approach would be to ignore SIGINT entirely - let uvicorn handle it through its own
# signal handling but this is quite intrusive and not worth the effort. # signal handling but this is quite intrusive and not worth the effort.
try: try:
uvicorn.run("llama_stack.core.server.server:create_app", **uvicorn_config) uvicorn.run("llama_stack.core.server.server:create_app", **uvicorn_config) # type: ignore[arg-type]
except (KeyboardInterrupt, SystemExit): except (KeyboardInterrupt, SystemExit):
logger.info("Received interrupt signal, shutting down gracefully...") logger.info("Received interrupt signal, shutting down gracefully...")