Преглед на файлове

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…
Отказ
Запис