Skip to content
Snippets Groups Projects
Commit fe958fa0 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

MAINT: add type hint

parent 79c13ab7
No related branches found
No related tags found
1 merge request!37ENH: add function that generates passwords
Pipeline #16981 passed
......@@ -111,7 +111,7 @@ def get_server_property(key):
return get_server_properties()[key]
def get_password(length):
def get_password(length: int):
""" creates a random password that fulfills the security requirements """
sample_letters = string.ascii_letters + string.digits + "!#$%*+-/:;?_"
password = ''.join((random.choice(sample_letters) for i in range(length)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment