summaryrefslogtreecommitdiff
path: root/t/unit/asynchronous/test_semaphore.py
diff options
context:
space:
mode:
Diffstat (limited to 't/unit/asynchronous/test_semaphore.py')
-rw-r--r--t/unit/asynchronous/test_semaphore.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/t/unit/asynchronous/test_semaphore.py b/t/unit/asynchronous/test_semaphore.py
index 8767ca91..5c41a6d8 100644
--- a/t/unit/asynchronous/test_semaphore.py
+++ b/t/unit/asynchronous/test_semaphore.py
@@ -1,11 +1,13 @@
+from __future__ import annotations
+
from kombu.asynchronous.semaphore import LaxBoundedSemaphore
class test_LaxBoundedSemaphore:
- def test_over_release(self):
+ def test_over_release(self) -> None:
x = LaxBoundedSemaphore(2)
- calls = []
+ calls: list[int] = []
for i in range(1, 21):
x.acquire(calls.append, i)
x.release()