Skip to content

Commit ec65e09

Browse files
committed
Remove one cast() call
1 parent a7a39d7 commit ec65e09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

magento/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,8 @@ def delete_product(self, sku: Sku, skip_missing: bool = False, throw: bool = Tru
10101010

10111011
# "Will returned True if deleted"
10121012
# https://magento.redoc.ly/2.3.6-admin/tag/productssku#operation/catalogProductRepositoryV1DeleteByIdDelete
1013-
return cast(bool, response.json())
1013+
ok: bool = response.json()
1014+
return ok
10141015

10151016
def async_update_products(self, product_updates: Iterable[MagentoEntity], **kwargs: Any) -> MagentoEntity:
10161017
"""Update multiple products using the async bulk API.

0 commit comments

Comments
 (0)