Fixed typing in return on function _get_cache_file_content based on code review

This commit is contained in:
Jules Lasne (jlasne - seluj78) 2020-10-12 08:41:35 +02:00
parent 08059f7efa
commit 150be9dabc

View File

@ -8,7 +8,7 @@ from typing import Tuple
def _get_cache_file_content(
path: str = ".potodo/cache.pickle",
) -> Optional[Tuple[datetime, dict]]:
) -> Tuple[Optional[datetime], Optional[dict]]:
try:
with open(path, "rb") as handle:
data = pickle.load(handle)