ansys / ansys/ansys-engineeringworkflow-api

Use Protocols instead of ABCs

Open
#38 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

### 📝 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](https://github.com/ansys-internal/bdm-python-api/pull/54).

### 💡 Steps for implementing the feature

n/a

### 🔗 Useful links and references

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.