Skip to content

Commit

Permalink
add comments in compiler
Browse files Browse the repository at this point in the history
Signed-off-by: Future-Outlier <[email protected]>
  • Loading branch information
Future-Outlier committed Sep 18, 2024
1 parent 50794bd commit c94c3fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flytepropeller/pkg/compiler/validators/bindings.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c94c3fa

Please sign in to comment.