Skip to content

Commit

Permalink
Remove unnecessary runtime typing_extensions dependency (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfies authored Dec 1, 2024
1 parent 4193027 commit 8db93b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions curl_cffi/requests/session.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import asyncio
import math
import queue
Expand Down Expand Up @@ -25,8 +27,6 @@
)
from urllib.parse import ParseResult, parse_qsl, quote, unquote, urlencode, urljoin, urlparse

from typing_extensions import Unpack

from .. import AsyncCurl, Curl, CurlError, CurlHttpVersion, CurlInfo, CurlOpt, CurlSslVersion
from ..curl import CURL_WRITEFUNC_ERROR, CurlMime
from .cookies import Cookies, CookieTypes, CurlMorsel
Expand All @@ -53,6 +53,7 @@
import eventlet.tpool

if TYPE_CHECKING:
from typing_extensions import Unpack

class ProxySpec(TypedDict, total=False):
all: str
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ license = { file = "LICENSE" }
dependencies = [
"cffi>=1.12.0",
"certifi>=2024.2.2",
"typing_extensions",
]
readme = "README.md"
requires-python = ">=3.8"
Expand Down Expand Up @@ -40,6 +39,7 @@ dev = [
"trustme>=1.1.0,<2.0",
"uvicorn>=0.29.0,<1.0",
"websockets>=12.0,<13.0",
"typing_extensions",
]
build = [
"cibuildwheel",
Expand All @@ -59,6 +59,7 @@ test = [
"trustme>=1.1.0,<2.0",
"uvicorn>=0.29.0,<1.0",
"websockets>=12.0,<13.0",
"typing_extensions",
]


Expand Down

0 comments on commit 8db93b4

Please sign in to comment.