From 870bd401462705c7b89d28d02ee1eecdce86aba7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isra=C3=ABl=20Hall=C3=A9?= Date: Thu, 5 Jun 2025 14:11:05 -0400 Subject: [PATCH] avoid mutating user args in scroll --- src/flareio/api_client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/flareio/api_client.py b/src/flareio/api_client.py index 83eb302..bb293d1 100644 --- a/src/flareio/api_client.py +++ b/src/flareio/api_client.py @@ -249,6 +249,9 @@ def scroll( if method not in {"GET", "POST"}: raise Exception("Scrolling is only supported for GET or POST") + params = dict(params) if params else None + json = dict(json) if json else None + from_in_params: bool = "from" in (params or {}) from_in_json: bool = "from" in (json or {})