diff --git a/README.md b/README.md index 72d4be7..c67b702 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Create a venv python3 -m venv gestform cd gestform # git clone https://gitlab.com/valbou2/GestForm -https://gitea.valbou26.fr/Abbeal/GestForm +https://gitea.valbou26.fr/Abbeal/GestForm.git source bin/activate cd GestForm python gestform.py diff --git a/gestform.py b/gestform.py index d70ee8f..39aa934 100644 --- a/gestform.py +++ b/gestform.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -from typing import List +from typing import List, Union from random import shuffle @@ -24,7 +24,7 @@ def randomise_with_iterator(list_from: List[int]) -> int: yield randomized.pop() -def gestformation(number: int) -> str: +def gestformation(number: int) -> Union[str, int]: """Transform a number to a string depends on modularity""" if number % GESTE == 0 and number % FORME == 0: return "GestForm"