Skip to content
This repository has been archived by the owner on Aug 19, 2023. It is now read-only.

apply JsonSchema via class decorator (instead of inheritance) #175

Open
dz0 opened this issue Nov 19, 2021 · 0 comments
Open

apply JsonSchema via class decorator (instead of inheritance) #175

dz0 opened this issue Nov 19, 2021 · 0 comments

Comments

@dz0
Copy link

dz0 commented Nov 19, 2021

Hi,
our CTO prefers "composition over inheritance" and tries to avoid composition where possible.

How complicated could it be to use class decorators instead of Mixin?

idea explained here -- but maybe you know gotchas than can be for your project?
https://effectivepython.com/2019/12/18/prefer-class-decorators-over-metaclasses

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant