diff --git a/pyproject.toml b/pyproject.toml index e5a330c39..e8d4d9ae6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,7 @@ version = {attr = "versioneer.get_version"} [tool.black] line-length = 120 -target-version = ['py39', 'py310', 'py311', 'py312', 'py313'] +target-version = ['py310', 'py311', 'py312', 'py313', 'py314'] force-exclude = "tableauserverclient/bin/*" [tool.mypy] diff --git a/tableauserverclient/server/endpoint/endpoint.py b/tableauserverclient/server/endpoint/endpoint.py index 31a0806dc..7a2705299 100644 --- a/tableauserverclient/server/endpoint/endpoint.py +++ b/tableauserverclient/server/endpoint/endpoint.py @@ -2,7 +2,6 @@ import io import os from contextlib import closing -from typing_extensions import Concatenate, ParamSpec from tableauserverclient import datetime_helpers as datetime import abc @@ -12,8 +11,10 @@ from typing import ( Any, Callable, + Concatenate, Generic, Optional, + ParamSpec, TYPE_CHECKING, TypeVar, Union, diff --git a/tableauserverclient/server/endpoint/jobs_endpoint.py b/tableauserverclient/server/endpoint/jobs_endpoint.py index 655b7cc6f..d790c036d 100644 --- a/tableauserverclient/server/endpoint/jobs_endpoint.py +++ b/tableauserverclient/server/endpoint/jobs_endpoint.py @@ -1,5 +1,6 @@ import logging -from typing_extensions import Self, overload +from typing import overload +from typing_extensions import Self from tableauserverclient.models import JobItem, BackgroundJobItem, PaginationItem diff --git a/tableauserverclient/server/request_factory.py b/tableauserverclient/server/request_factory.py index fc4694c01..c78450aa2 100644 --- a/tableauserverclient/server/request_factory.py +++ b/tableauserverclient/server/request_factory.py @@ -1,12 +1,9 @@ import xml.etree.ElementTree as ET -from typing import Any, Callable, TypeVar, TYPE_CHECKING +from typing import Any, Callable, Concatenate, ParamSpec, TypeVar, TYPE_CHECKING from collections.abc import Iterable -from typing_extensions import ParamSpec - from requests.packages.urllib3.fields import RequestField from requests.packages.urllib3.filepost import encode_multipart_formdata -from typing_extensions import Concatenate from tableauserverclient.models import *