Skip to content

Commit 6943d7d

Browse files
committed
avoid mutating user args in scroll
1 parent 9048a04 commit 6943d7d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

flareio/api_client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,9 @@ def scroll(
228228
if method not in {"GET", "POST"}:
229229
raise Exception("Scrolling is only supported for GET or POST")
230230

231+
params = dict(params) if params else None
232+
json = dict(json) if json else None
233+
231234
from_in_params: bool = "from" in (params or {})
232235
from_in_json: bool = "from" in (json or {})
233236

0 commit comments

Comments
 (0)