How to Solve NameError: name 'Enum' is not defined -- enum
Solution: Import the 'Enum' module
# Add the following line to the top of your code
from enum import Enum
For more information:
enum Enum
# Add the following line to the top of your code
from enum import Enum
For more information:
enum Enum