mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Third-party stubs: fix several fictitious type aliases (#7958)
This commit is contained in:
@@ -6,7 +6,6 @@ from urllib3.util import retry
|
||||
|
||||
from . import cookies, exceptions, models, structures, utils
|
||||
|
||||
PreparedRequest = models.PreparedRequest
|
||||
Response = models.Response
|
||||
PoolManager = poolmanager.PoolManager
|
||||
proxy_from_url = poolmanager.proxy_from_url
|
||||
@@ -40,7 +39,7 @@ class BaseAdapter:
|
||||
def __init__(self) -> None: ...
|
||||
def send(
|
||||
self,
|
||||
request: PreparedRequest,
|
||||
request: models.PreparedRequest,
|
||||
stream: bool = ...,
|
||||
timeout: None | float | tuple[float, float] | tuple[float, None] = ...,
|
||||
verify: bool | str = ...,
|
||||
@@ -69,7 +68,7 @@ class HTTPAdapter(BaseAdapter):
|
||||
def proxy_headers(self, proxy): ...
|
||||
def send(
|
||||
self,
|
||||
request: PreparedRequest,
|
||||
request: models.PreparedRequest,
|
||||
stream: bool = ...,
|
||||
timeout: None | float | tuple[float, float] | tuple[float, None] = ...,
|
||||
verify: bool | str = ...,
|
||||
|
||||
@@ -4,7 +4,6 @@ from typing import Any, AnyStr
|
||||
from . import compat, cookies, exceptions, structures
|
||||
|
||||
OrderedDict = compat.OrderedDict
|
||||
RequestsCookieJar = cookies.RequestsCookieJar
|
||||
cookiejar_from_dict = cookies.cookiejar_from_dict
|
||||
CaseInsensitiveDict = structures.CaseInsensitiveDict
|
||||
InvalidURL = exceptions.InvalidURL
|
||||
|
||||
Reference in New Issue
Block a user