off.py 332 B

1234567891011121314151617
  1. from __future__ import annotations
  2. from typing import Any
  3. from uvicorn import Config
  4. class LifespanOff:
  5. def __init__(self, config: Config) -> None:
  6. self.should_exit = False
  7. self.state: dict[str, Any] = {}
  8. async def startup(self) -> None:
  9. pass
  10. async def shutdown(self) -> None:
  11. pass