Skip to content

Commit

Permalink
Merge pull request #32 from 201st-Luka/new-features
Browse files Browse the repository at this point in the history
fix: added `client_id` parameter in `IterRequestModel.request()`
  • Loading branch information
201st-Luka authored Aug 23, 2023
2 parents 2570dbd + 0f9db74 commit 8bc9605
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pyclasher/api/requests/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ def __init__(self,
self._len = None
return

async def request(self):
await super().request()
async def request(self, client_id=None):
await super().request(client_id)
self._len = len(self._get_data('items'))
return self

Expand Down
3 changes: 0 additions & 3 deletions pyclasher/api/requests/abc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ class IterRequestModel(RequestModel, ABC):
) -> None:
self._len: None | int = ...

async def _async_request(self) -> IterRequestModel:
...

@property
def items(self) -> _list_rtype:
...
Expand Down

0 comments on commit 8bc9605

Please sign in to comment.