Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove mypy_extensions dep #870

Merged
merged 2 commits into from
Oct 3, 2023

Conversation

nemith
Copy link
Contributor

@nemith nemith commented Sep 22, 2023

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

Copy link
Collaborator

@ktbyers ktbyers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ktbyers ktbyers merged commit 33eb0d3 into nornir-automation:main Oct 3, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove mypy_extensions this has been deprecated
2 participants