Skip to content

Commit 14c84a6

Browse files
committed
formatting only
1 parent effb5a8 commit 14c84a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/async_utils/priority_sem.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ def __locked(self) -> bool:
133133
# in the case of existing waiters
134134
# not guaranteed to be immediately available
135135
with self._internal_lock:
136-
return self._value == 0 or (any(not w.cancelled() for w in (self._waiters or ())))
136+
return self._value == 0 or (
137+
any(not w.cancelled() for w in (self._waiters or ()))
138+
)
137139

138140
async def __aenter__(self) -> None:
139141
prio = _priority.get()

0 commit comments

Comments
 (0)