Skip to content

Commit 1f33b72

Browse files
committed
fix: python <3.13 support
1 parent d7f2b35 commit 1f33b72

File tree

3 files changed

+131
-3
lines changed

3 files changed

+131
-3
lines changed

poetry.lock

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

pylacus/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
import sys
66

77
from typing import Any, TypedDict, Literal
8-
from warnings import deprecated
8+
9+
if sys.version_info >= (3, 13):
10+
from warnings import deprecated
11+
else:
12+
from deprecated import deprecated
913

1014
from .api import PyLacus, CaptureStatus, CaptureResponse, CaptureResponseJson # noqa
1115

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ dynamic = ["classifiers"]
1515

1616
dependencies = [
1717
"requests (>=2.32.5)",
18-
"lookyloo-models (>=0.1.0,<0.2.0)"
18+
"lookyloo-models (>=0.1.2,<0.2.0)",
19+
"deprecated (>=1.3.1,<2.0.0) ; python_version < \"3.13\""
1920
]
2021

2122
[tool.poetry]

0 commit comments

Comments
 (0)