mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-26 13:51:30 +08:00
requests: add type hint for Session.send() (#4302)
This takes a PreparedRequest and returns a Response. See https://github.com/psf/requests/blob/master/requests/sessions.py#L614
This commit is contained in:
2
third_party/2and3/requests/sessions.pyi
vendored
2
third_party/2and3/requests/sessions.pyi
vendored
@@ -96,7 +96,7 @@ class Session(SessionRedirectMixin):
|
||||
def put(self, url: Union[Text, bytes], data: _Data = ..., **kwargs) -> Response: ...
|
||||
def patch(self, url: Union[Text, bytes], data: _Data = ..., **kwargs) -> Response: ...
|
||||
def delete(self, url: Union[Text, bytes], **kwargs) -> Response: ...
|
||||
def send(self, request, **kwargs): ...
|
||||
def send(self, request: PreparedRequest, **kwargs) -> Response: ...
|
||||
def merge_environment_settings(self, url, proxies, stream, verify, cert): ...
|
||||
def get_adapter(self, url): ...
|
||||
def close(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user