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 Dec 4, 2024
1 parent 9802850 commit 49017f0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 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 poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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"
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 49017f0

Please sign in to comment.