Skip to content

Commit

Permalink
Only require exceptiongroup dependency for Python <3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
zware committed Nov 27, 2024
1 parent cb80612 commit 28353ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion aio_pika/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@

import aiormq
from aiormq.abc import DeliveredMessage
from exceptiongroup import ExceptionGroup
try:
ExceptionGroup
except NameError:
from exceptiongroup import ExceptionGroup
from pamqp.common import Arguments

from .abc import (
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ packages = [{ include = "aio_pika" }]
python = "^3.9"
aiormq = "~6.8.0"
yarl = [{ version = '*'}]
exceptiongroup = "^1"
exceptiongroup = [{ version = "^1", python = "< 3.11" }]
typing_extensions = [{ version = '*', python = "< 3.10" }]

[tool.poetry.group.dev.dependencies]
Expand Down

0 comments on commit 28353ac

Please sign in to comment.