diff --git a/a_sync/primitives/queue.py b/a_sync/primitives/queue.py index 864811f4..da053fac 100644 --- a/a_sync/primitives/queue.py +++ b/a_sync/primitives/queue.py @@ -568,7 +568,9 @@ def __lt__(self, other: "_SmartFutureRef[T]") -> bool: if strong_self is None: return True strong_other = other() - return False if strong_other is None else strong_self < strong_other + if strong_other is None: + return False + return strong_self < strong_other class _PriorityQueueMixin(Generic[T]):