| 1692 | return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) |
| 1693 | |
| 1694 | def patch( |
| 1695 | self, |
| 1696 | path: str, |
| 1697 | *, |
| 1698 | cast_to: Type[ResponseT], |
| 1699 | body: Body | None = None, |
| 1700 | content: BinaryTypes | None = None, |
| 1701 | files: RequestFiles | None = None, |
| 1702 | options: RequestOptions = {}, |
| 1703 | ) -> ResponseT: |
| 1704 | if body is not None and content is not None: |
| 1705 | raise TypeError("Passing both `body` and `content` is not supported") |
| 1706 | if files is not None and content is not None: |
| 1707 | raise TypeError("Passing both `files` and `content` is not supported") |
| 1708 | opts = FinalRequestOptions.construct( |
| 1709 | method="patch", url=path, json_data=body, content=content, files=to_httpx_files(files), **options |
| 1710 | ) |
| 1711 | return self.request(cast_to, opts) |
| 1712 | |
| 1713 | def put( |
| 1714 | self, |