First Commit - API Tested and functional
This commit is contained in:
17
.env/Lib/site-packages/uvicorn/lifespan/off.py
Normal file
17
.env/Lib/site-packages/uvicorn/lifespan/off.py
Normal 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
|
||||
Reference in New Issue
Block a user