mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-18 09:23:26 -05:00
refactor: annotate every remaining signature
This commit is contained in:
1 parent
5961b6bfe7
commit
faa8af0800
52 files changed
+261
-145
No files matched your search
@@ -52,7 +52,9 @@ def load_registry(registry_path: str = DEFAULT_REGISTRY) -> dict[str, dict]:
|
||||
return data.get("data_directories", {})
|
||||
|
||||
|
||||
def cache_lock(cache_dir: str | Path, shared: bool = False):
|
||||
def cache_lock(
|
||||
cache_dir: str | Path, shared: bool = False
|
||||
) -> contextlib.AbstractContextManager[None]:
|
||||
"""The lock a refresh holds while it swaps cache_dir.
|
||||
|
||||
A reader takes it shared: a pack walking data/sdlpal while another run
|
||||
|
||||
Reference in new issue
Block a user