Python - import 'List' -- typing Py Py Aug 31, 2022 Import Optional To import Optional, Add the following line to the top of your code. from typing import Optional