MCPcopy Index your code
hub / github.com/praw-dev/praw / patch

Method patch

praw/reddit.py:768–787  ·  view source on GitHub ↗

Return parsed objects returned from a PATCH request to ``path``. :param path: The path to fetch. :param data: Dictionary, bytes, or file-like object to send in the body of the request (default: ``None``). :param json: JSON-serializable object to send in the body

(
        self,
        path: str,
        *,
        data: dict[str, Any] | bytes | IO | str | None = None,
        json: dict[Any, Any] | list[Any] | None = None,
        params: dict[str, str | int] | None = None,
    )

Source from the content-addressed store, hash-verified

766 return url_generator(url)
767
768 def patch(
769 self,
770 path: str,
771 *,
772 data: dict[str, Any] | bytes | IO | str | None = None,
773 json: dict[Any, Any] | list[Any] | None = None,
774 params: dict[str, str | int] | None = None,
775 ) -> Any:
776 """Return parsed objects returned from a PATCH request to ``path``.
777
778 :param path: The path to fetch.
779 :param data: Dictionary, bytes, or file-like object to send in the body of the
780 request (default: ``None``).
781 :param json: JSON-serializable object to send in the body of the request with a
782 Content-Type header of application/json (default: ``None``). If ``json`` is
783 provided, ``data`` should not be.
784 :param params: The query parameters to add to the request (default: ``None``).
785
786 """
787 return self._objectify_request(data=data, json=json, method="PATCH", params=params, path=path)
788
789 def post(
790 self,

Callers 6

mainFunction · 0.80
updateMethod · 0.80
reorderMethod · 0.80
updateMethod · 0.80
_reorderMethod · 0.80

Calls 1

_objectify_requestMethod · 0.95

Tested by

no test coverage detected