Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions kombu/asynchronous/semaphore.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,20 @@

import sys
from collections import deque
from typing import TYPE_CHECKING, Callable, Deque

if sys.version_info < (3, 10):
from typing_extensions import ParamSpec
else:
from typing import ParamSpec
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from types import TracebackType
from typing import Callable, Deque

Check warning on line 10 in kombu/asynchronous/semaphore.py

View check run for this annotation

Codecov / codecov/patch

kombu/asynchronous/semaphore.py#L10

Added line #L10 was not covered by tests
if sys.version_info < (3, 10):
from typing_extensions import ParamSpec

Check warning on line 12 in kombu/asynchronous/semaphore.py

View check run for this annotation

Codecov / codecov/patch

kombu/asynchronous/semaphore.py#L12

Added line #L12 was not covered by tests
else:
from typing import ParamSpec

Check warning on line 14 in kombu/asynchronous/semaphore.py

View check run for this annotation

Codecov / codecov/patch

kombu/asynchronous/semaphore.py#L14

Added line #L14 was not covered by tests

P = ParamSpec("P")

Check warning on line 16 in kombu/asynchronous/semaphore.py

View check run for this annotation

Codecov / codecov/patch

kombu/asynchronous/semaphore.py#L16

Added line #L16 was not covered by tests

__all__ = ('DummyLock', 'LaxBoundedSemaphore')

P = ParamSpec("P")


class LaxBoundedSemaphore:
"""Asynchronous Bounded Semaphore.
Expand Down
1 change: 0 additions & 1 deletion requirements/default.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
typing_extensions==4.12.2; python_version<"3.10"
amqp>=5.1.1,<6.0.0
vine==5.1.0
backports.zoneinfo[tzdata]>=0.2.1; python_version<"3.9"
Expand Down
1 change: 1 addition & 0 deletions requirements/pkgutils.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ sphinx2rst>=1.0
bumpversion==0.6.0
pydocstyle==6.3.0
mypy==1.14.1
typing_extensions==4.12.2; python_version<"3.10"