Преглед изворни кода

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…
Откажи
Сачувај