Fix Fire integration is not compatible with typing library (#610)

This commit is contained in:
allegroai
2022-04-09 14:22:47 +03:00
parent 5edad33b86
commit 3bde51ebe7
2 changed files with 46 additions and 5 deletions

View File

@@ -0,0 +1,22 @@
from typing import Tuple, List
from clearml import Task
import fire
def with_ret() -> Tuple:
print("With ret called")
return 1, 2
def with_args(arg1: int, arg2: List):
print("With args called", arg1, arg2)
def with_args_and_ret(arg1: int, arg2: List) -> Tuple:
print("With args and ret called", arg1, arg2)
return 1, 2
if __name__ == "__main__":
Task.init(project_name="examples", task_name="Fire typing command")
fire.Fire()