0

Using Python 3.9, I'm used to declaring a tuple as t: tuple[A, B]. However, I now have a list[int], which is converted to a tuple. Obviously, the size of the list is only known at runtime. How do I declare a typing hint for the variable storing tuple(some_list))?

Abhijit Sarkar
  • 21,927
  • 20
  • 110
  • 219

0 Answers0