fix: drop some type fixme (#20344)
This commit is contained in:
parent
9b47f9f786
commit
5a991295e0
10 changed files with 43 additions and 45 deletions
|
|
@ -84,8 +84,8 @@ def _build_variable_from_mapping(*, mapping: Mapping[str, Any], selector: Sequen
|
|||
raise VariableError("missing value type")
|
||||
if (value := mapping.get("value")) is None:
|
||||
raise VariableError("missing value")
|
||||
# FIXME: using Any here, fix it later
|
||||
result: Any
|
||||
|
||||
result: Variable
|
||||
match value_type:
|
||||
case SegmentType.STRING:
|
||||
result = StringVariable.model_validate(mapping)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue