diff options
author | BonfaceKilz | 2021-02-24 09:57:48 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-02-24 14:20:29 +0300 |
commit | 06250b830c8cc26b66354363935c3b9b06a6e7cc (patch) | |
tree | c7b766ffa6ff0887c61e792c37deded8dde550be | |
parent | 052a82d76f092a00bacd60ae6a82545d0f614412 (diff) | |
download | genenetwork3-06250b830c8cc26b66354363935c3b9b06a6e7cc.tar.gz |
Add mypy-typing to function
* gn3/computations/gemma.py (generate_random_n_string): Add typing to function.
-rw-r--r-- | gn3/computations/gemma.py | 2 |
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)) |