From 5376c97996b371dadc3488f4952df8a0dbe20101 Mon Sep 17 00:00:00 2001 From: Karim shoair Date: Tue, 25 Nov 2025 20:25:09 +0200 Subject: [PATCH] fix(fetcher): Remove non-keywords arguments --- scrapling/core/shell.py | 2 +- scrapling/engines/static.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scrapling/core/shell.py b/scrapling/core/shell.py index 0799496..3e0f1e2 100644 --- a/scrapling/core/shell.py +++ b/scrapling/core/shell.py @@ -421,7 +421,7 @@ Type 'exit' or press Ctrl+D to exit. if isinstance(result, (Response, Selector)): self.pages.append(result) if len(self.pages) > 5: - self.pages.pop(0) # Remove oldest item + self.pages.pop(0) # Remove the oldest item # Update in IPython namespace too if self.shell: diff --git a/scrapling/engines/static.py b/scrapling/engines/static.py index a442002..951659b 100644 --- a/scrapling/engines/static.py +++ b/scrapling/engines/static.py @@ -683,8 +683,8 @@ class FetcherSession: class FetcherClient(_SyncSessionLogic): __slots__ = ("__enter__", "__exit__") - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) + def __init__(self, **kwargs): + super().__init__(**kwargs) self.__enter__: Any = None self.__exit__: Any = None self._curl_session: Any = _NO_SESSION @@ -693,8 +693,8 @@ class FetcherClient(_SyncSessionLogic): class AsyncFetcherClient(_ASyncSessionLogic): __slots__ = ("__aenter__", "__aexit__") - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) + def __init__(self, **kwargs): + super().__init__(**kwargs) self.__aenter__: Any = None self.__aexit__: Any = None self._async_curl_session: Any = _NO_SESSION