Skip to content

Commit f3d145f

Browse files
committed
add experimental support for python 3.12
1 parent 2b16aeb commit f3d145f

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: ["3.13", "3.14"]
15+
python-version: ["3.12", "3.13", "3.14"]
1616
steps:
1717
- uses: actions/checkout@v6
1818
with:

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies = [
1515
"httpx[http2]~=0.28",
1616
"pydantic~=2.12",
1717
"tenacity~=9.1",
18+
"typing_extensions>=4.10",
1819
]
1920

2021
[project.urls]

src/bubble_data_api_client/config.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@
99
set_config_provider(lambda: get_config_for_current_user())
1010
"""
1111

12+
import sys
1213
from collections.abc import Callable
13-
from typing import NotRequired, TypedDict, TypeIs
14+
from typing import NotRequired, TypedDict
15+
16+
if sys.version_info >= (3, 13): # noqa: UP036
17+
from typing import TypeIs
18+
else:
19+
from typing_extensions import TypeIs # noqa: UP035
1420

1521
import tenacity
1622

0 commit comments

Comments
 (0)