aboutsummaryrefslogtreecommitdiff
path: root/gn3/commands.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-10-26 07:17:38 +0300
committerFrederick Muriuki Muriithi2023-10-26 07:18:19 +0300
commitc1e488035f2d896a2c4a0e20639c44b381aa2081 (patch)
tree6d30b5e04ef836558dd288e8dc07cfe579cdcd48 /gn3/commands.py
parent8c7a9fb61cbcb80edcc7239716b952469bbc6daa (diff)
downloadgenenetwork3-c1e488035f2d896a2c4a0e20639c44b381aa2081.tar.gz
Fix errors caught by mypy.
Diffstat (limited to 'gn3/commands.py')
-rw-r--r--gn3/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/commands.py b/gn3/commands.py
index a90e895..b873d4d 100644
--- a/gn3/commands.py
+++ b/gn3/commands.py
@@ -148,7 +148,7 @@ def run_sample_corr_cmd(method, this_trait_data, target_dataset_data):
return correlation_results
-def run_cmd(cmd: str, success_codes: Tuple = (0,), env: str = None) -> Dict:
+def run_cmd(cmd: str, success_codes: Tuple = (0,), env: Optional[str] = None) -> Dict:
"""Run CMD and return the CMD's status code and output as a dict"""
parsed_cmd = json.loads(cmd)
parsed_env = (json.loads(env) if env is not None else None)