浏览代码

fix warnings

Rodja Trappe 1 年之前
父节点
当前提交
fe1fc2ec54
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      website/fly.py

+ 3 - 2
website/fly.py

@@ -24,8 +24,9 @@ def setup() -> bool:
         This only works if the correct instance is provided as a query_string parameter.
         """
 
-        def __init__(self, app: ASGIApp) -> None:
-            self.app = app
+        def __init__(self, asgi_app: ASGIApp) -> None:
+            super().__init__(asgi_app)
+            self.app = asgi_app
             self.app_name = os.environ.get('FLY_APP_NAME')
 
         async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None: