Skip to content

Commit 27188a7

Browse files
autoruffbouwew
authored andcommitted
fixup: improve-cache-writing Python code reformatted using Ruff
1 parent 89ee9ad commit 27188a7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

plugwise_usb/helpers/cache.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@ def _get_writable_os_dir(self) -> str:
9999
)
100100
return os_path_join(os_path_expand_user("~"), CACHE_DIR)
101101

102-
async def write_cache(
103-
self, data: dict[str, str], rewrite: bool = False
104-
) -> None: # noqa: PLR0912
102+
async def write_cache(self, data: dict[str, str], rewrite: bool = False) -> None: # noqa: PLR0912
105103
"""Save information to cache file atomically using aiofiles + temp file."""
106104
if not self._initialized:
107105
raise CacheError(

0 commit comments

Comments
 (0)