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

Solution: Import the 'dict' module

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

from typing import dict

 

For more information:
Python typing dict