File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 55import zipfile
66from collections .abc import Callable
77from concurrent .futures import ThreadPoolExecutor
8+ from typing import Any
9+
810
911# Third party imports
1012import flask
@@ -101,7 +103,7 @@ def versions(list_packages: list[str]) -> list[dict[str, str]]:
101103 return list_with_versions
102104
103105
104- def validate_request (request : flask .Request , schema : SchemaDict ) -> dict :
106+ def validate_request (request : flask .Request , schema : SchemaDict ) -> dict [ str , Any ] :
105107 json_data = request .get_json (force = True , silent = True )
106108
107109 if json_data is None :
@@ -209,10 +211,10 @@ def save_all_viewables_and_return_info(
209211 binary_light_viewable = f .read ()
210212 data .native_file = os .path .basename (native_files [0 ])
211213 data .viewable_file = os .path .basename (viewable_path )
212- data .light_viewable = os .path .basename (light_path )
214+ data .light_viewable_file = os .path .basename (light_path )
213215 assert data .native_file is not None
214216 assert data .viewable_file is not None
215- assert data .light_viewable is not None
217+ assert data .light_viewable_file is not None
216218 return {
217219 "native_file" : data .native_file ,
218220 "viewable_file" : data .viewable_file ,
You can’t perform that action at this time.
0 commit comments