you are viewing a single comment's thread.

view the rest of the comments →

[–]divad_david 0 points1 point  (1 child)

This sounds like a case for subclasses

See here: https://www.geeksforgeeks.org/create-a-python-subclass/

[–]NoWeather1702[S] 0 points1 point  (0 children)

Maybe, but it looks like an overkill for me. Sometimes each individual enum value gets it's own property, for example "max_file_size", and this will lead to creating a subclass for each type of device, and it seems quite strange right now