Skip to content

Commit

Permalink
fixed merger issues
Browse files Browse the repository at this point in the history
  • Loading branch information
muddi900 committed Sep 9, 2024
1 parent 4b3598f commit 7e14b47
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions shopipy/shopify.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async def _request(
url_json_path: str,
method: str,
*,
json: dict[Any, Any] | None = None = None,
json: dict[Any, Any] | None = None,
**params,
) -> httpx.Response:
url = "{}/{}".format(self.__url, url_json_path)
Expand Down Expand Up @@ -138,14 +138,6 @@ async def _delete_item(
)
return await self._request(url_json_path, RequestType.DELETE)

async def _delete_item(
self, url_json_path: str, *, item_id: int | str | None = None, **params
) -> httpx.Response:
json_path = (
f"{url_json_path}/{item_id}.json" if item_id is not None else url_json_path
)
return await self._request(url_json_path, RequestType.DELETE, json=None)

async def _edit_item(
self,
url_json_path: str,
Expand Down

0 comments on commit 7e14b47

Please sign in to comment.