nornir-automation / nornir

Pluggable multi-threaded framework with inventory management to help operate collections of devices
https://nornir.readthedocs.io/
Apache License 2.0
1.37k stars 233 forks source link

remove mypy_extensions dep #870

Closed nemith closed 11 months ago

nemith commented 11 months ago

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.

Fixes: #868