r"""Sends a PATCH request. :param url: URL for the new :class:`Request` object. :param data: (optional) Dictionary, list of tuples, bytes, or file-like object to send in the body of the :class:`Request`. :param json: (optional) A JSON serializable Python object to send in the bo
(
url: _t.UriType, data: _t.DataType = None, **kwargs: Unpack[_t.DataKwargs]
)
| 152 | |
| 153 | |
| 154 | def patch( |
| 155 | url: _t.UriType, data: _t.DataType = None, **kwargs: Unpack[_t.DataKwargs] |
| 156 | ) -> Response: |
| 157 | r"""Sends a PATCH request. |
| 158 | |
| 159 | :param url: URL for the new :class:`Request` object. |
| 160 | :param data: (optional) Dictionary, list of tuples, bytes, or file-like |
| 161 | object to send in the body of the :class:`Request`. |
| 162 | :param json: (optional) A JSON serializable Python object to send in the body of the :class:`Request`. |
| 163 | :param \*\*kwargs: Optional arguments that ``request`` takes. |
| 164 | :return: :class:`Response <Response>` object |
| 165 | :rtype: requests.Response |
| 166 | """ |
| 167 | |
| 168 | return request("patch", url, data=data, **kwargs) |
| 169 | |
| 170 | |
| 171 | def delete(url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]) -> Response: |