-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[REF-2302] When a Var points to a model, prefer access to model field…
…s. (#2893) * When a Var points to a model, prefer access to model fields. When a Var points to a model, and fields of the model share the same name as Var operations, access to the model fields is now preferred to avoid having Var operation names shadow model fields. Since most Var operations do not actually work against Models, this does not really block any functionality. * Special case for ComputedVar needing to internally access fget Since fget is a "slot" on property, normal __getattribute__ access cannot find it. * Workaround python/cpython#88459 In python 3.9 and 3.10, the `isinstance(list[...], type)` returns True, but it's not a valid class for use in issubclass
- Loading branch information
Showing
2 changed files
with
32 additions
and
4 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
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