From 239a61f4986cd7c62b17b8e34386a4617c41e547 Mon Sep 17 00:00:00 2001 From: Eirini Koutsaniti Date: Tue, 18 Jun 2024 15:31:35 +0300 Subject: [PATCH] Fix typing errors --- firecrest/AsyncClient.py | 2 +- firecrest/BasicClient.py | 2 +- firecrest/cli/__init__.py | 8 +++++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/firecrest/AsyncClient.py b/firecrest/AsyncClient.py index 826a9ab..d715291 100644 --- a/firecrest/AsyncClient.py +++ b/firecrest/AsyncClient.py @@ -850,7 +850,7 @@ async def compress( .. warning:: This is available only for FirecREST>=1.16.0 """ - data = { + data: dict[str, str | bool] = { "targetPath": target_path, "sourcePath": source_path, } diff --git a/firecrest/BasicClient.py b/firecrest/BasicClient.py index b903d14..45c583e 100644 --- a/firecrest/BasicClient.py +++ b/firecrest/BasicClient.py @@ -618,7 +618,7 @@ def compress( .. warning:: This is available only for FirecREST>=1.16.0 """ - data = { + data: dict[str, str | bool] = { "targetPath": target_path, "sourcePath": source_path } diff --git a/firecrest/cli/__init__.py b/firecrest/cli/__init__.py index 243caa9..f3ccc92 100644 --- a/firecrest/cli/__init__.py +++ b/firecrest/cli/__init__.py @@ -1256,7 +1256,13 @@ def submit_compress( try: console.print( client.submit_compress_job( - system, source, destination, job_name, time, jobid, account + machine=system, + source_path=source, + target_path=destination, + job_name=job_name, + time=time, + stage_out_job_id=jobid, + account=account ) ) except Exception as e: