While looking into #861 I noticed that the way the Callable and with the arguments from mypy_extension is deprecated and no longer needed. This is supported natively in typing in 3.8 or greater with the Protocol type.
So this moves to using Protocol with a __call__ stub instead of the mypy_extensions.
While looking into #861 I noticed that the way the Callable and with the arguments from
mypy_extension
is deprecated and no longer needed. This is supported natively in typing in 3.8 or greater with theProtocol
type.So this moves to using
Protocol
with a__call__
stub instead of themypy_extensions
.Fixes: #868