mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
modernize typing
This commit is contained in:
+1
-2
@@ -41,9 +41,8 @@ class UvicornServer(uvicorn.Server):
|
||||
self.start()
|
||||
|
||||
|
||||
class HypercornServer():
|
||||
class HypercornServer:
|
||||
def __init__(self, app: fastapi.FastAPI, listen = None, port = None, keyfile = None, certfile = None, loop = "auto", http = None):
|
||||
import asyncio
|
||||
import hypercorn
|
||||
self.app: fastapi.FastAPI = app
|
||||
self.server: HypercornServer = None
|
||||
|
||||
Reference in New Issue
Block a user