Skip to content

Commit 8109a3b

Browse files
author
autoruff
committed
fixup: improve-cache-writing Python code reformatted using Ruff
1 parent 9e182bb commit 8109a3b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugwise_usb/helpers/cache.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ async def write_cache(self, data: dict[str, str], rewrite: bool = False) -> None
159159
temp_path = None # Successfully renamed
160160
if os_name != "nt":
161161
# Ensure directory entry is persisted on POSIX
162-
await loop.run_in_executor(None, _fsync_parent_dir, cache_file_path.parent)
162+
await loop.run_in_executor(
163+
None, _fsync_parent_dir, cache_file_path.parent
164+
)
163165

164166
if not self._cache_file_exists:
165167
self._cache_file_exists = True

0 commit comments

Comments
 (0)