github api queries revised and refactored

This commit is contained in:
pseusys
2023-03-11 22:14:21 +01:00
parent 04ff14615b
commit 559b68bd8b
5 changed files with 67 additions and 59 deletions

View File

@@ -1,7 +1,7 @@
from os.path import join, isfile, dirname
from pickle import load as load_pickle, dump as dump_pickle
from json import load as load_json
from typing import Dict, Optional
from typing import Dict, Optional, Any
from manager_environment import EnvironmentManager as EM
@@ -58,7 +58,7 @@ class FileManager:
file.write(content)
@staticmethod
def cache_binary(name: str, content: Optional[Dict] = None, assets: bool = False) -> Optional[Dict]:
def cache_binary(name: str, content: Optional[Any] = None, assets: bool = False) -> Optional[Any]:
"""
Save binary output file if provided or read if content is None.