Загрузить файлы в «venv/Lib/site-packages/uvicorn/lifespan»

This commit is contained in:
2026-07-02 20:52:08 +00:00
parent e2c807847e
commit 1fcebf3de9
3 changed files with 154 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
from __future__ import annotations
from typing import Any
from uvicorn import Config
class LifespanOff:
def __init__(self, config: Config) -> None:
self.should_exit = False
self.state: dict[str, Any] = {}
async def startup(self) -> None:
pass
async def shutdown(self) -> None:
pass