Skip to content

Use Protocols instead of ABCs #38

@phxnsharp

Description

@phxnsharp

📝 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions