Skip to content

Commit 76a4545

Browse files
authored
avoid mutating user args in scroll (#19)
1 parent 94897be commit 76a4545

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)