-
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
So after reasoning with @agraul in this thread here, we have decided to get rid of properties and use a dataclass for Osversion.
Since we do want to do type validation on the members, we need a library who supports that. I see three options currently:
- dataclass-type-validator:
- GH: https://github.com/levii/dataclass-type-validator
- PyPi: https://pypi.org/project/dataclass-type-validator/
- Py Version: 3.8+
- enforce-typing
- GH: https://github.com/matchawine/python-enforce-typing
- PyPi: https://pypi.org/project/enforce-typing/
- Py Version: 3.7+
- gata
- GH: https://github.com/kodemore/gata
- PyPi: https://pypi.org/project/gata/
- Py Version: 3.5+
I would vote for the gata library because it seems the most used one but I see the downside that this means that we can't run it with Python 3.6 which we have on SLE15 (no SP).
CC @nodeg @meaksh @agraul @vzhestkov we need to maintain this library in the future so the choice is also up to you. I did not look up what we have in the Buildservice packaged or not already.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
Inbox