aboutsummaryrefslogtreecommitdiff
path: root/gn3/computations/gemma.py
diff options
context:
space:
mode:
authorBonfaceKilz2021-02-24 09:57:48 +0300
committerBonfaceKilz2021-02-24 14:20:29 +0300
commit06250b830c8cc26b66354363935c3b9b06a6e7cc (patch)
treec7b766ffa6ff0887c61e792c37deded8dde550be /gn3/computations/gemma.py
parent052a82d76f092a00bacd60ae6a82545d0f614412 (diff)
downloadgenenetwork3-06250b830c8cc26b66354363935c3b9b06a6e7cc.tar.gz
Add mypy-typing to function
* gn3/computations/gemma.py (generate_random_n_string): Add typing to function.
Diffstat (limited to 'gn3/computations/gemma.py')
-rw-r--r--gn3/computations/gemma.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/computations/gemma.py b/gn3/computations/gemma.py
index 5bdddc1..790aecb 100644
--- a/gn3/computations/gemma.py
+++ b/gn3/computations/gemma.py
@@ -3,7 +3,7 @@ import random
import string
-def generate_random_n_string(n_length):
+def generate_random_n_string(n_length: int) -> str:
"""Generate a random string that is N chars long"""
return ''.join(random.choice(string.ascii_uppercase + string.digits)
for _ in range(n_length))