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

Erorr: name 'List' is not defined

NameError: name 'List' is not defined

Solution: name 'List' is not defined

from typing import List

 

For more information:
LIst Typing