Skip to content

Commit 97b802b

Browse files
committed
chore: remove unused fallback for python 3.7
1 parent 8e00c47 commit 97b802b

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

poetry.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ keywords = ["taskiq", "tasks", "distributed", "async", "aio-pika"]
2121
python = "^3.8.1"
2222
taskiq = ">=0.6.0,<1"
2323
aio-pika = "^9.0"
24-
importlib-metadata = {version = "^4.0.0", python = "<3.8"}
2524

2625
[tool.poetry.dev-dependencies]
2726
pytest = "^7.0"

taskiq_aio_pika/__init__.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
"""Taskiq integration with aio-pika."""
2-
from taskiq_aio_pika.broker import AioPikaBroker
2+
from importlib.metadata import version
33

4-
try:
5-
# Python 3.8+
6-
from importlib.metadata import version # noqa: WPS433
7-
except ImportError:
8-
# Python 3.7
9-
from importlib_metadata import version # noqa: WPS433, WPS440
4+
from taskiq_aio_pika.broker import AioPikaBroker
105

116
__version__ = version("taskiq-aio-pika")
127

0 commit comments

Comments
 (0)