瀏覽代碼

Add type hint for request object

master
Chris Smith 6 年之前
父節點
當前提交
f4dc2865cf
共有 1 個檔案被更改,包括 4 行新增1 行删除
  1. 4
    1
      lineandsinker/services/service.py

+ 4
- 1
lineandsinker/services/service.py 查看文件

@@ -1,3 +1,6 @@
1
+from flask import Request
2
+
3
+
1 4
 class Service:
2 5
     def __init__(self, type):
3 6
         self.type = type
@@ -5,5 +8,5 @@ class Service:
5 8
     def refresh(self):
6 9
         pass
7 10
 
8
-    def accept_hook(self, identifier, request):
11
+    def accept_hook(self, identifier, request: Request):
9 12
         pass

Loading…
取消
儲存