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

Solution: Import the 'Callable' module

# Add the following line to the top of your code
from typing import Callable

 

For more information:
typing Callable