Skip to content

Commit d823284

Browse files
authored
Merge pull request #9 from CoderJoshDK/override
fix: override typing import on older python
2 parents 34de373 + 42c2d0f commit d823284

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "WIOpy"
3-
version = "1.2.1"
3+
version = "1.2.2"
44
description = "A Python wrapper for the Walmart IO API"
55
readme = "README.md"
66
license = { file = "LICENSE" }
@@ -9,7 +9,8 @@ requires-python = ">=3.9"
99
dependencies = [
1010
"requests",
1111
"pycryptodome",
12-
"aiohttp"
12+
"aiohttp",
13+
"typing-extensions>=4.5.0; python_version < '3.12'",
1314
]
1415
keywords = [
1516
"API",

uv.lock

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

wiopy/WalmartResponse.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,16 @@
22

33
from __future__ import annotations
44

5+
import sys
56
from html import unescape
6-
from typing import Any, Final, cast, override
7+
from typing import Any, Final, cast
8+
9+
# pyright: basic
10+
if sys.version_info >= (3, 12):
11+
from typing import override
12+
else:
13+
from typing_extensions import override
14+
# pyright: strict
715

816
__all__ = (
917
"OverallRating",

0 commit comments

Comments
 (0)