From 6943d7dada9c02f2da5d0134f244826d221c45b4 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 --- flareio/api_client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flareio/api_client.py b/flareio/api_client.py index 947b6b0..4a3fe42 100644 --- a/flareio/api_client.py +++ b/flareio/api_client.py @@ -228,6 +228,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 {})