Skip to content

Commit 870bd40

Browse files
leameowaviau
authored andcommitted
avoid mutating user args in scroll
1 parent 94897be commit 870bd40

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/flareio/api_client.py

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

252+
params = dict(params) if params else None
253+
json = dict(json) if json else None
254+
252255
from_in_params: bool = "from" in (params or {})
253256
from_in_json: bool = "from" in (json or {})
254257

0 commit comments

Comments
 (0)