can not import Protocol from typing
If it does not exist in typing do
pip install typing_extensions
from typing_extensions import Protocol
Depending upon OS and Python version Protocol class might be within typing module or in typing_extensions.
As of January 20, 2019, PEP 544's status is Draft
. As far as I understand, it's not implemented in CPython yet.
UPD: it should work since Python 3.8, try updating.