satori-python-server 0.16.5__tar.gz → 0.16.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {satori_python_server-0.16.5 → satori_python_server-0.16.7}/PKG-INFO +1 -1
- {satori_python_server-0.16.5 → satori_python_server-0.16.7}/pyproject.toml +1 -1
- {satori_python_server-0.16.5 → satori_python_server-0.16.7}/src/satori/server/__init__.py +2 -1
- {satori_python_server-0.16.5 → satori_python_server-0.16.7}/.mina/server.toml +0 -0
- {satori_python_server-0.16.5 → satori_python_server-0.16.7}/LICENSE +0 -0
- {satori_python_server-0.16.5 → satori_python_server-0.16.7}/README.md +0 -0
- {satori_python_server-0.16.5 → satori_python_server-0.16.7}/src/satori/server/adapter.py +0 -0
- {satori_python_server-0.16.5 → satori_python_server-0.16.7}/src/satori/server/connection.py +0 -0
- {satori_python_server-0.16.5 → satori_python_server-0.16.7}/src/satori/server/formdata.py +0 -0
- {satori_python_server-0.16.5 → satori_python_server-0.16.7}/src/satori/server/model.py +0 -0
- {satori_python_server-0.16.5 → satori_python_server-0.16.7}/src/satori/server/route.py +0 -0
- {satori_python_server-0.16.5 → satori_python_server-0.16.7}/src/satori/server/utils.py +0 -0
|
@@ -33,6 +33,7 @@ from starlette.responses import Response as Response
|
|
|
33
33
|
from starlette.responses import StreamingResponse as StreamingResponse
|
|
34
34
|
from starlette.routing import Route, WebSocketRoute
|
|
35
35
|
from starlette.staticfiles import StaticFiles
|
|
36
|
+
from starlette.types import ASGIApp
|
|
36
37
|
from starlette.websockets import WebSocket, WebSocketDisconnect
|
|
37
38
|
from yarl import URL
|
|
38
39
|
|
|
@@ -139,7 +140,7 @@ class Server(Service, RouterMixin):
|
|
|
139
140
|
self.app = Starlette()
|
|
140
141
|
super().__init__()
|
|
141
142
|
|
|
142
|
-
def replace_app(self, app: asgitypes.ASGI3Application):
|
|
143
|
+
def replace_app(self, app: ASGIApp | asgitypes.ASGI3Application):
|
|
143
144
|
"""替换当前的 Starlette 应用"""
|
|
144
145
|
self.app = app
|
|
145
146
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|