aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-11-24 19:21:08 +0200
committerGravatar GitHub <[email protected]>2020-11-24 19:21:08 +0200
commitd1c53b2d3c8aa8580b57e7bfda2b8902e761a070 (patch)
treeaa91796000c3c4d523594f9cbe7bfc6b97dea6c1
parentIgnore class self and class method cls type annotations for flake8 (diff)
Add return type hint to route classmethod
-rw-r--r--backend/route.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/route.py b/backend/route.py
index af68b93..eb69ebc 100644
--- a/backend/route.py
+++ b/backend/route.py
@@ -9,7 +9,7 @@ class Route(HTTPEndpoint):
path: str = None
@classmethod
- def check_parameters(cls):
+ def check_parameters(cls) -> "Route":
if cls.name is None:
raise ValueError(f"Route {cls.__name__} has not defined a name")