diff options
author | 2020-11-24 19:21:08 +0200 | |
---|---|---|
committer | 2020-11-24 19:21:08 +0200 | |
commit | d1c53b2d3c8aa8580b57e7bfda2b8902e761a070 (patch) | |
tree | aa91796000c3c4d523594f9cbe7bfc6b97dea6c1 | |
parent | Ignore class self and class method cls type annotations for flake8 (diff) |
Add return type hint to route classmethod
-rw-r--r-- | backend/route.py | 2 |
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") |