How to convert list[int, int, int] to tuple[int, int, int] and not tuple[int, …]
Suppose I have 2 functions, func1
and func2
. func1
returns a list of 3 integers, and func2
takes a tuple of 3 integers, how would I convert the list to a tuple in such a way that I can prevent errors by type checkers (I am using mypy
).
Here is the code that is throwing error: