Skip to content

Commit f2217c8

Browse files
committed
Adding suggestions
1 parent 1629aee commit f2217c8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

qfieldcloud_sdk/sdk.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def __init__(
227227
"Cannot create a new QFieldCloud client without a url passed in the constructor or as environment variable QFIELDCLOUD_URL"
228228
)
229229

230-
def login(self, username: str, password: str) -> Dict:
230+
def login(self, username: str, password: str) -> Dict[str, Any]:
231231
"""Logins with the provided credentials.
232232
233233
Args:
@@ -313,9 +313,6 @@ def list_remote_files(
313313
314314
Example:
315315
client.list_remote_files("project_id", True)
316-
317-
Todo:
318-
* Remove this temporary decoration with `etag` key
319316
"""
320317
params = {}
321318

@@ -324,6 +321,7 @@ def list_remote_files(
324321

325322
resp = self._request("GET", f"files/{project_id}", params=params)
326323
remote_files = resp.json()
324+
# TODO remove this temporary decoration with `etag` key
327325
remote_files = list(map(lambda f: {"etag": f["md5sum"], **f}, remote_files))
328326

329327
return remote_files

0 commit comments

Comments
 (0)