refactoring

This commit is contained in:
Maxim Devaev 2022-11-10 02:56:20 +03:00
parent 3748360deb
commit 6b2b9c6ec4

View File

@ -147,8 +147,8 @@ class HidApi:
return self.__inner_ensure_symmap(path, st.st_mtime) return self.__inner_ensure_symmap(path, st.st_mtime)
@functools.lru_cache(maxsize=10) @functools.lru_cache(maxsize=10)
def __inner_ensure_symmap(self, path: str, mtime: int) -> dict[int, dict[int, str]]: def __inner_ensure_symmap(self, path: str, mod_ts: int) -> dict[int, dict[int, str]]:
_ = mtime # For LRU _ = mod_ts # For LRU
return build_symmap(path) return build_symmap(path)
# ===== # =====