Skip to content

Commit

Permalink
typing_extensions -> typing
Browse files Browse the repository at this point in the history
  • Loading branch information
mariofix committed Dec 22, 2024
1 parent 9f53a57 commit 1d3984e
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion khipu_tools/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion khipu_tools/_api_mode.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from typing_extensions import Literal
from typing import Literal

ApiMode = Literal["V3"]
2 changes: 1 addition & 1 deletion khipu_tools/_api_requestor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion khipu_tools/_app_info.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Optional

from typing_extensions import TypedDict
from typing import TypedDict


class AppInfo(TypedDict):
Expand Down
2 changes: 1 addition & 1 deletion khipu_tools/_banks.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion khipu_tools/_base_address.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Optional

from typing_extensions import Literal, NotRequired, TypedDict
from typing import Literal, NotRequired, TypedDict

BaseAddress = Literal["api"]

Expand Down
2 changes: 1 addition & 1 deletion khipu_tools/_http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion khipu_tools/_khipu_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
overload,
)

from typing_extensions import Literal, Self
from typing import Literal, Self

# Used to break circular imports
import khipu_tools
Expand Down
2 changes: 1 addition & 1 deletion khipu_tools/_list_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion khipu_tools/_payments.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion khipu_tools/_predict.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion khipu_tools/_request_options.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions khipu_tools/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
)
from urllib.parse import parse_qsl, quote_plus

import typing_extensions
import typing

# Used for global variables
import khipu_tools
Expand All @@ -33,7 +33,7 @@
logger: logging.Logger = logging.getLogger("khipu")


deprecated = typing_extensions.deprecated
deprecated = typing.deprecated


def _console_log_level():
Expand Down

0 comments on commit 1d3984e

Please sign in to comment.