Skip to content

Commit d224d08

Browse files
rustyconoverclaude
andcommitted
style: format function_storage.py
Left unformatted by a550612; ruff check and format both fail on it, so it would have turned CI red on the next push regardless of what else landed. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 9aec8e3 commit d224d08

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

‎vgi/function_storage.py‎

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
1818
"""
1919

20+
import contextlib
2021
import enum
2122
import functools
2223
import logging
2324
import os
2425
import sqlite3
25-
import contextlib
2626
import threading
2727
import time
2828
from collections.abc import Callable, Iterable, Iterator
@@ -946,9 +946,7 @@ def __init__(self, db_path: str | None = None) -> None:
946946
self.db_path = db_path if db_path is not None else _get_default_db_path()
947947
# Shared-cache in-memory DBs need a process-local write lock; file DBs
948948
# do not. See `_write_guard`.
949-
self._write_lock: threading.Lock | None = (
950-
threading.Lock() if self._memory_uri is not None else None
951-
)
949+
self._write_lock: threading.Lock | None = threading.Lock() if self._memory_uri is not None else None
952950
self._tls = threading.local()
953951
self._ensure_tables()
954952

@@ -1497,9 +1495,16 @@ def wrapper(self: "FunctionStorageSqlite", *a: Any, **k: Any) -> Any:
14971495
return wrapper
14981496

14991497
for name in (
1500-
"queue_push", "queue_pop", "queue_clear",
1501-
"state_put_many", "state_drain", "state_delete", "state_append",
1502-
"execution_clear", "state_counter_add", "state_counter_set",
1498+
"queue_push",
1499+
"queue_pop",
1500+
"queue_clear",
1501+
"state_put_many",
1502+
"state_drain",
1503+
"state_delete",
1504+
"state_append",
1505+
"execution_clear",
1506+
"state_counter_add",
1507+
"state_counter_set",
15031508
"state_counter_delete",
15041509
):
15051510
setattr(FunctionStorageSqlite, name, guarded(getattr(FunctionStorageSqlite, name)))

0 commit comments

Comments
 (0)