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

Use Protocols instead of ABCs #38

Open
phxnsharp opened this issue Oct 20, 2023 · 0 comments
Open

Use Protocols instead of ABCs #38

phxnsharp opened this issue Oct 20, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@phxnsharp
Copy link
Collaborator

📝 Description of the feature

I recently learned about Protocols in Python, which is a more Python-esque way to create interfaces. The changes are very minor and should not impact any code using this library. I suggest we make the same change to these interfaces.

More details on Protocol at: https://peps.python.org/pep-0544/

Example of a different API that was recently changed from an ABC to a Protocol.

💡 Steps for implementing the feature

n/a

🔗 Useful links and references

No response

@phxnsharp phxnsharp added the enhancement New feature or request label Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant