-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Michal Hecko
committed
Jul 15, 2024
1 parent
bf4fd61
commit 86e35e0
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters