diff --git a/khipu_tools/__init__.py b/khipu_tools/__init__.py index b77b6b4..dd4d24c 100644 --- a/khipu_tools/__init__.py +++ b/khipu_tools/__init__.py @@ -1,6 +1,6 @@ from typing import Optional -from typing_extensions import Literal +from typing import Literal from khipu_tools._api_requestor import _APIRequestor from khipu_tools._api_version import _ApiVersion diff --git a/khipu_tools/_api_mode.py b/khipu_tools/_api_mode.py index 60d3373..cba6c10 100644 --- a/khipu_tools/_api_mode.py +++ b/khipu_tools/_api_mode.py @@ -1,3 +1,3 @@ -from typing_extensions import Literal +from typing import Literal ApiMode = Literal["V3"] diff --git a/khipu_tools/_api_requestor.py b/khipu_tools/_api_requestor.py index 66088c0..d58f78a 100644 --- a/khipu_tools/_api_requestor.py +++ b/khipu_tools/_api_requestor.py @@ -3,7 +3,7 @@ from typing import TYPE_CHECKING, Any, ClassVar, Optional, cast from urllib.parse import parse_qs, urlencode, urlsplit, urlunsplit -from typing_extensions import Literal, Unpack +from typing import Literal, Unpack # breaking circular dependency import khipu_tools diff --git a/khipu_tools/_app_info.py b/khipu_tools/_app_info.py index bbaa2cf..e5cb770 100644 --- a/khipu_tools/_app_info.py +++ b/khipu_tools/_app_info.py @@ -1,6 +1,6 @@ from typing import Optional -from typing_extensions import TypedDict +from typing import TypedDict class AppInfo(TypedDict): diff --git a/khipu_tools/_banks.py b/khipu_tools/_banks.py index e258d04..d84ca2c 100644 --- a/khipu_tools/_banks.py +++ b/khipu_tools/_banks.py @@ -1,6 +1,6 @@ from typing import ClassVar, TypeVar -from typing_extensions import Literal +from typing import Literal from khipu_tools._khipu_object import KhipuObject from khipu_tools._api_resource import APIResource diff --git a/khipu_tools/_base_address.py b/khipu_tools/_base_address.py index 84454d9..d5ff255 100644 --- a/khipu_tools/_base_address.py +++ b/khipu_tools/_base_address.py @@ -1,6 +1,6 @@ from typing import Optional -from typing_extensions import Literal, NotRequired, TypedDict +from typing import Literal, NotRequired, TypedDict BaseAddress = Literal["api"] diff --git a/khipu_tools/_http_client.py b/khipu_tools/_http_client.py index f0cc89a..5378416 100644 --- a/khipu_tools/_http_client.py +++ b/khipu_tools/_http_client.py @@ -6,7 +6,7 @@ import requests from requests import Session as RequestsSession -from typing_extensions import Literal, Never, TypedDict +from typing import Literal, Never, TypedDict from khipu_tools._error import APIConnectionError diff --git a/khipu_tools/_khipu_object.py b/khipu_tools/_khipu_object.py index ae5ec31..ac31d58 100644 --- a/khipu_tools/_khipu_object.py +++ b/khipu_tools/_khipu_object.py @@ -12,7 +12,7 @@ overload, ) -from typing_extensions import Literal, Self +from typing import Literal, Self # Used to break circular imports import khipu_tools diff --git a/khipu_tools/_list_object.py b/khipu_tools/_list_object.py index f899555..1428304 100644 --- a/khipu_tools/_list_object.py +++ b/khipu_tools/_list_object.py @@ -2,7 +2,7 @@ from typing import Any, Generic, TypeVar, cast from urllib.parse import quote_plus -from typing_extensions import Self, Unpack +from typing import Self, Unpack from khipu_tools._api_requestor import _APIRequestor from khipu_tools._khipu_object import KhipuObject diff --git a/khipu_tools/_payments.py b/khipu_tools/_payments.py index c17238a..56ff0d3 100644 --- a/khipu_tools/_payments.py +++ b/khipu_tools/_payments.py @@ -1,7 +1,7 @@ from decimal import Decimal from typing import ClassVar, Optional, TypeVar -from typing_extensions import Literal, Unpack +from typing import Literal, Unpack from khipu_tools._api_resource import APIResource from khipu_tools._khipu_object import KhipuObject diff --git a/khipu_tools/_predict.py b/khipu_tools/_predict.py index 0986783..dfc6543 100644 --- a/khipu_tools/_predict.py +++ b/khipu_tools/_predict.py @@ -1,6 +1,6 @@ from typing import ClassVar, TypeVar -from typing_extensions import Literal, Unpack +from typing import Literal, Unpack from khipu_tools._api_resource import APIResource from khipu_tools._khipu_object import KhipuObject diff --git a/khipu_tools/_request_options.py b/khipu_tools/_request_options.py index a6d5cda..e52008e 100644 --- a/khipu_tools/_request_options.py +++ b/khipu_tools/_request_options.py @@ -1,7 +1,7 @@ from collections.abc import Mapping from typing import Any, Optional -from typing_extensions import NotRequired, TypedDict +from typing import NotRequired, TypedDict from khipu_tools._requestor_options import RequestorOptions diff --git a/khipu_tools/_util.py b/khipu_tools/_util.py index f8701e8..ebdf28b 100644 --- a/khipu_tools/_util.py +++ b/khipu_tools/_util.py @@ -17,7 +17,7 @@ ) from urllib.parse import parse_qsl, quote_plus -import typing_extensions +import typing # Used for global variables import khipu_tools @@ -33,7 +33,7 @@ logger: logging.Logger = logging.getLogger("khipu") -deprecated = typing_extensions.deprecated +deprecated = typing.deprecated def _console_log_level():