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