From 419a95fba7b37df7be9a2118e6051aa0c8620371 Mon Sep 17 00:00:00 2001 From: jfriedli Date: Sun, 13 Jun 2021 10:58:02 +0000 Subject: Mypy missing types fix --- matweb/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'matweb') diff --git a/matweb/utils.py b/matweb/utils.py index f4cbca3..270c5f3 100644 --- a/matweb/utils.py +++ b/matweb/utils.py @@ -2,6 +2,7 @@ import hmac import os import hashlib import mimetypes as mtype +from typing import Tuple from flask_restful import abort, current_app from libmat2 import parser_factory @@ -97,7 +98,7 @@ def get_file_paths(filename, upload_folder): return complete_path, filepath -def is_valid_api_download_file(filename: str, key: str, secret: str, upload_folder: str) -> [str, str]: +def is_valid_api_download_file(filename: str, key: str, secret: str, upload_folder: str) -> Tuple[str, str]: if filename != secure_filename(filename): current_app.logger.error('Insecure filename %s', filename) abort(400, message='Insecure filename') -- cgit v1.3