From c94c3fa51d1df6d98f117d1cf6173c31467eb399 Mon Sep 17 00:00:00 2001 From: Future-Outlier Date: Thu, 19 Sep 2024 00:46:24 +0800 Subject: [PATCH] add comments in compiler Signed-off-by: Future-Outlier --- flytepropeller/pkg/compiler/validators/bindings.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flytepropeller/pkg/compiler/validators/bindings.go b/flytepropeller/pkg/compiler/validators/bindings.go index 337d04966d..53535ba260 100644 --- a/flytepropeller/pkg/compiler/validators/bindings.go +++ b/flytepropeller/pkg/compiler/validators/bindings.go @@ -147,7 +147,7 @@ func validateBinding(w c.WorkflowBuilder, node c.Node, nodeParam string, binding } else if sourceType.GetMapValueType() != nil { sourceType = sourceType.GetMapValueType() } else if sourceType.GetStructure() != nil && sourceType.GetStructure().GetDataclassType() != nil { - + // This is for retrieving the literal type of an attribute in a dataclass or Pydantic BaseModel tmpType, exist = sourceType.GetStructure().GetDataclassType()[attr.GetStringValue()] if !exist {