I'm writing a function that returns a tuple and using type annotations. To do so, I've written:
def foo(bar) -> Tuple[int, int]:
pass
This runs, but I've been getting a warning that says:
"Tuple" is not defined Pylance report UndefinedVariable
Given that I'm writing a number of functions that return a tuple type, I'd like to get rid of the warning. I'm assuming I just need to import the package Tuple refers to, but what is the right Python package for it?
Given my research, I'm inclined to think it's the typing package, but I'm not sure.