Skip to content

Commit 5b9c2c5

Browse files
jacalataclaude
andcommitted
chore: move Concatenate/ParamSpec/overload from typing_extensions to typing
These three names live in stdlib `typing` since Python 3.10, which is the repo's supported minimum (`requires-python = ">=3.10"`). Only `Self` still requires `typing_extensions` for 3.10 users, so keep that import in place until 3.10 support drops. Also drop `py39` from Black's `target-version` array and add `py314` -- py39 is below the supported minimum, py314 is already in the CI test matrix. No behavior change. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 3ddfcf2 commit 5b9c2c5

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ version = {attr = "versioneer.get_version"}
4949

5050
[tool.black]
5151
line-length = 120
52-
target-version = ['py39', 'py310', 'py311', 'py312', 'py313']
52+
target-version = ['py310', 'py311', 'py312', 'py313', 'py314']
5353
force-exclude = "tableauserverclient/bin/*"
5454

5555
[tool.mypy]

tableauserverclient/server/endpoint/endpoint.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import io
33
import os
44
from contextlib import closing
5-
from typing_extensions import Concatenate, ParamSpec
65
from tableauserverclient import datetime_helpers as datetime
76

87
import abc
@@ -12,8 +11,10 @@
1211
from typing import (
1312
Any,
1413
Callable,
14+
Concatenate,
1515
Generic,
1616
Optional,
17+
ParamSpec,
1718
TYPE_CHECKING,
1819
TypeVar,
1920
Union,

tableauserverclient/server/endpoint/jobs_endpoint.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import logging
2-
from typing_extensions import Self, overload
2+
from typing import overload
3+
from typing_extensions import Self
34

45

56
from tableauserverclient.models import JobItem, BackgroundJobItem, PaginationItem

tableauserverclient/server/request_factory.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
import xml.etree.ElementTree as ET
2-
from typing import Any, Callable, TypeVar, TYPE_CHECKING
2+
from typing import Any, Callable, Concatenate, ParamSpec, TypeVar, TYPE_CHECKING
33
from collections.abc import Iterable
44

5-
from typing_extensions import ParamSpec
6-
75
from requests.packages.urllib3.fields import RequestField
86
from requests.packages.urllib3.filepost import encode_multipart_formdata
9-
from typing_extensions import Concatenate
107

118
from tableauserverclient.models import *
129

0 commit comments

Comments
 (0)