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

Solution: Import the 'Set' module

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

from typing import Set

 

For more information:
Python typing Set