How to Solve NameError: name 'Tuple' is not defined -- typing

Solution: Import the 'Tuple' module

To Solve the error, add the following line to the top of your code.

from typing import Tuple

 

For more information:
Python typing Tuple