diff --git a/src/imednet/core/endpoint/mixins/caching.py b/src/imednet/core/endpoint/mixins/caching.py index d8917589..33b0f960 100644 --- a/src/imednet/core/endpoint/mixins/caching.py +++ b/src/imednet/core/endpoint/mixins/caching.py @@ -20,7 +20,6 @@ def _update_local_cache( result: Any, study: str | None, has_filters: bool, - cache: Any, ) -> None: if has_filters or not self._enable_cache: return diff --git a/src/imednet/core/endpoint/mixins/list.py b/src/imednet/core/endpoint/mixins/list.py index 19124807..6a09824b 100644 --- a/src/imednet/core/endpoint/mixins/list.py +++ b/src/imednet/core/endpoint/mixins/list.py @@ -54,9 +54,8 @@ def _process_list_result( result: List[T], study: Optional[str], has_filters: bool, - cache: Any, ) -> List[T]: - self._update_local_cache(result, study, has_filters, cache) + self._update_local_cache(result, study, has_filters) return result def _prepare_list_request( @@ -123,7 +122,7 @@ def _list_sync( ) result = operation.execute_sync(client, paginator_cls) - return self._process_list_result(result, state.study, state.has_filters, state.cache) + return self._process_list_result(result, state.study, state.has_filters) async def _list_async( self, @@ -148,7 +147,7 @@ async def _list_async( ) result = await operation.execute_async(client, paginator_cls) - return self._process_list_result(result, state.study, state.has_filters, state.cache) + return self._process_list_result(result, state.study, state.has_filters) def list( self,