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

Solution: Import the 'Any' module

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

 

For more information:
typing Any