Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecation: add fine-grained deprecation on models #874

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jul 15, 2024

  1. deprecation: add fine-grained deprecation on models

    Add fine grained deprecation, alloowing the developer to specify
    individual fields of a model that are deprecated. For example:
    
        class A():
          deprecated = fields.Boolean()
          a = fields.Boolean()
    
        @deprecated('b.deprecated')
        class B():
          b = fields.Model(A)
          c = fields.Int()
    
    Accessing (set or get) b_instance.b.deprecated triggers deprecation
    warnining.
    Michal Hecko committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    86e35e0 View commit details
    Browse the repository at this point in the history