Browse Source

Add type hint for request object

master
Chris Smith 5 years ago
parent
commit
f4dc2865cf
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      lineandsinker/services/service.py

+ 4
- 1
lineandsinker/services/service.py View File

@@ -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…
Cancel
Save