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

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

Open
@dz0

Description

@dz0

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions