Open auscompgeek opened 1 year ago
Says it was added in 3.8. Is it in future?
In the past I've just done something like this:
try:
from typing import Protocol
except ImportError:
Protocol = object
It should also be in typing_extensions
.
https://github.com/robotpy/pyfrc/blob/9959bff71165ea74d1df018c1fb496bcb2aeafe8/pyfrc/physics/core.py#L50
https://docs.python.org/3/library/typing.html#typing.Protocol