Refactor: More f-string for kitty

This commit is contained in:
pagedown
2022-01-29 20:17:46 +08:00
parent 74e70d2548
commit ba0f61d752
18 changed files with 34 additions and 34 deletions

View File

@@ -54,7 +54,7 @@ def atomic_save(data: bytes, path: str) -> None:
@contextmanager
def cached_values_for(name: str) -> Generator[Dict[str, Any], None, None]:
cached_path = os.path.join(cache_dir(), name + '.json')
cached_path = os.path.join(cache_dir(), f'{name}.json')
cached_values: Dict[str, Any] = {}
try:
with open(cached_path, 'rb') as f: