fix: allow calculation with identifier
This commit is contained in:
parent
594dfb2f7f
commit
2466860ce7
1 changed files with 4 additions and 3 deletions
|
|
@ -295,6 +295,7 @@ class JinjaCalculation(Calculation):
|
|||
"choices",
|
||||
"dynamic",
|
||||
"secret_manager",
|
||||
"identifier",
|
||||
]
|
||||
jinja: StrictStr
|
||||
params: Optional[List[Param]] = None
|
||||
|
|
@ -876,7 +877,7 @@ class VariablePropertyCalculation(_VariableCalculation):
|
|||
|
||||
|
||||
class InformationCalculation(Calculation):
|
||||
attribute_name: Literal["default", "choice", "dynamic"]
|
||||
attribute_name: Literal["default", "choice", "dynamic", "identifier"]
|
||||
information: StrictStr
|
||||
variable: Optional[StrictStr]
|
||||
|
||||
|
|
@ -935,7 +936,7 @@ class _IdentifierCalculation(Calculation):
|
|||
|
||||
|
||||
class IdentifierCalculation(_IdentifierCalculation):
|
||||
attribute_name: Literal["default", "choice", "dynamic"]
|
||||
attribute_name: Literal["default", "choice", "dynamic", "identifier"]
|
||||
|
||||
def to_function(
|
||||
self,
|
||||
|
|
@ -996,7 +997,7 @@ class IdentifierPropertyCalculation(_IdentifierCalculation):
|
|||
|
||||
|
||||
class IndexCalculation(Calculation):
|
||||
attribute_name: Literal["default", "choice", "dynamic"]
|
||||
attribute_name: Literal["default", "choice", "dynamic", "identifier"]
|
||||
|
||||
def to_function(
|
||||
self,
|
||||
|
|
|
|||
Loading…
Reference in a new issue