aboutsummaryrefslogtreecommitdiff
path: root/.venv/lib/python3.12/site-packages/uvicorn/lifespan/off.py
blob: e1516f16af255289df666ce52f215a7740fd9507 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from typing import Any, Dict

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