mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-04 19:28:50 +08:00
Allow requests to have timeout: Tuple[float, None] (#3612)
This commit is contained in:
1 parent
1421fb1074
commit
c4bdd90d86
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -47,7 +47,7 @@ class BaseAdapter:
|
||||
def send(self,
|
||||
request: PreparedRequest,
|
||||
stream: bool = ...,
|
||||
timeout: Union[None, float, Tuple[float, float]] = ...,
|
||||
timeout: Union[None, float, Tuple[float, float], Tuple[float, None]] = ...,
|
||||
verify: Union[bool, str] = ...,
|
||||
cert: Union[None, Union[bytes, Text], Container[Union[bytes, Text]]] = ...,
|
||||
proxies: Optional[Mapping[str, str]] = ...) -> Response: ...
|
||||
@@ -73,7 +73,7 @@ class HTTPAdapter(BaseAdapter):
|
||||
def send(self,
|
||||
request: PreparedRequest,
|
||||
stream: bool = ...,
|
||||
timeout: Union[None, float, Tuple[float, float]] = ...,
|
||||
timeout: Union[None, float, Tuple[float, float], Tuple[float, None]] = ...,
|
||||
verify: Union[bool, str] = ...,
|
||||
cert: Union[None, Union[bytes, Text], Container[Union[bytes, Text]]] = ...,
|
||||
proxies: Optional[Mapping[str, str]] = ...) -> Response: ...
|
||||
+1
-1
@@ -86,7 +86,7 @@ class Session(SessionRedirectMixin):
|
||||
cookies: Union[None, RequestsCookieJar, MutableMapping[Text, Text]] = ...,
|
||||
files: Optional[MutableMapping[Text, IO[Any]]] = ...,
|
||||
auth: Union[None, Tuple[Text, Text], _auth.AuthBase, Callable[[Request], Request]] = ...,
|
||||
timeout: Union[None, float, Tuple[float, float]] = ...,
|
||||
timeout: Union[None, float, Tuple[float, float], Tuple[float, None]] = ...,
|
||||
allow_redirects: Optional[bool] = ...,
|
||||
proxies: Optional[MutableMapping[Text, Text]] = ...,
|
||||
hooks: Optional[_HooksInput] = ...,
|
||||
|
||||
Reference in new issue
Block a user