single-responsibility-principle

Achieving single-responsibility principle with python abstract classes

Achieving single-responsibility principle with python abstract classes Question: I want to separate the DB models from the actual classes. But i need two static functions for fetching data from the DB regardless of the subclass type. the implementation for both functions are the same across all DB models. pyright showing an error that cls inside …

Total answers: 1