Skip to content

Commit 00475ce

Browse files
committed
feat(arkitect): lint
1 parent 216e0c9 commit 00475ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arkitect/utils/common.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ async def get_instance_async(cls, *args: Any, **kwargs: Any) -> T:
6868
if not cls._instance or cls.is_outdated():
6969
async with cls._lock:
7070
if (not cls._instance) or cls.is_outdated():
71-
assert hasattr(
72-
cls, "async_init"
73-
), "async singletons must define async_init function"
71+
assert hasattr(cls, "async_init"), (
72+
"async singletons must define async_init function"
73+
)
7474
cls._instance = await cls.async_init(*args, **kwargs)
7575
cls._refresh_time = time.time()
7676
logger.debug("singleton class initialized", name=cls.__name__)

0 commit comments

Comments
 (0)