Refactored to use cached_asts in Concepts, rather than setting up a value directly
This commit is contained in:
@@ -293,3 +293,16 @@ class Property:
|
||||
|
||||
def __hash__(self):
|
||||
return hash((self.name, self.value))
|
||||
|
||||
|
||||
@dataclass()
|
||||
class DoNotResolve:
|
||||
"""
|
||||
This class is used to that the metadata (or the prop) of the concept must not be evaluated
|
||||
thru sheerka.execute
|
||||
|
||||
For example, if you want to set a value to the BODY that will not change when
|
||||
when the concept will be evaluated,
|
||||
set concept.cached_asts[BODY] to DoNotResolve(value)
|
||||
"""
|
||||
value: object
|
||||
|
||||
Reference in New Issue
Block a user