Merge branch 'master' into feat/gitpython_multiple_file_and_single_commits

This commit is contained in:
Alexander Sergeev
2023-03-11 23:02:55 +01:00
committed by GitHub
5 changed files with 68 additions and 60 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
@@ -59,7 +59,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.