Skip to content

Commit 3809320

Browse files
author
simonrempel
committed
Adds typing
1 parent dee0e71 commit 3809320

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

refinery/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def post_file_import(
231231
msg.fail(msg_text)
232232
raise exceptions.FileImportError(msg_text)
233233

234-
def __monitor_task(self, upload_task_id):
234+
def __monitor_task(self, upload_task_id: str) -> None:
235235
do_monitoring = True
236236
idx = 0
237237
last_progress = 0.0
@@ -258,7 +258,7 @@ def __monitor_task(self, upload_task_id):
258258
)
259259
time.sleep(0.5)
260260

261-
def __get_task(self, upload_task_id):
261+
def __get_task(self, upload_task_id: str) -> Dict[str, Any]:
262262
api_response = api_calls.get_request(
263263
settings.get_task(self.project_id, upload_task_id), self.session_token
264264
)

0 commit comments

Comments
 (0)