From 5939e7c889e5c9afd2a89ff1da339a27393d044d Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sat, 12 Mar 2022 10:49:51 +0000 Subject: [PATCH] Gateway: typing: upload() --- src/eddn/Gateway.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eddn/Gateway.py b/src/eddn/Gateway.py index 5f3a527..fd2beed 100644 --- a/src/eddn/Gateway.py +++ b/src/eddn/Gateway.py @@ -188,7 +188,7 @@ def get_decompressed_message() -> bytes: return message_body -def parse_and_error_handle(data: str) -> str: +def parse_and_error_handle(data: bytes) -> str: """ Parse an incoming message and handle errors. @@ -272,7 +272,7 @@ def parse_and_error_handle(data: str) -> str: @app.route('/upload/', method=['OPTIONS', 'POST']) -def upload(): +def upload() -> str: """ Handle an /upload/ request.