aboutsummaryrefslogtreecommitdiff
path: root/gn3/computations
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/computations
parent8c7a9fb61cbcb80edcc7239716b952469bbc6daa (diff)
downloadgenenetwork3-c1e488035f2d896a2c4a0e20639c44b381aa2081.tar.gz
Fix errors caught by mypy.
Diffstat (limited to 'gn3/computations')
-rw-r--r--gn3/computations/gemma.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gn3/computations/gemma.py b/gn3/computations/gemma.py
index 8036a7b..7f09b0a 100644
--- a/gn3/computations/gemma.py
+++ b/gn3/computations/gemma.py
@@ -5,6 +5,7 @@ from base64 import b64encode
from hashlib import md5
from typing import Dict
from typing import List
+from typing import Optional
from typing import ValuesView
from gn3.commands import compose_gemma_cmd
from gn3.fs_helpers import get_hash_of_files
@@ -53,8 +54,8 @@ def generate_gemma_cmd(gemma_cmd: str,
output_dir: str,
token: str,
gemma_kwargs: Dict,
- gemma_wrapper_kwargs: Dict = None,
- chromosomes: str = None) -> Dict:
+ gemma_wrapper_kwargs: Optional[Dict] = None,
+ chromosomes: Optional[str] = None) -> Dict:
"""Compute k values"""
_hash = get_hash_of_files(
[v for k, v in gemma_kwargs.items() if k in ["g", "p", "a", "c"]])