Skip to content

Commit

Permalink
Update ComponentBase.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cobycloud committed Jan 6, 2025
1 parent b6e1dd7 commit f039ea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/core/swarmauri_core/ComponentBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def determine_new_type(cls, field_annotation, resource_type):
# Append the new ResourceType
metadata.append(ResourceType(resource_type))
logger.debug(f"Preserving existing metadata and adding ResourceType for resource '{resource_type.__name__}'")
field_annotation = Annotated[base_type, *metadata]
field_annotation = Annotated[tuple([base_type, *metadata])]

# Construct the new type with SubclassUnion and discriminated Union
subclass_union = SubclassUnion[resource_type]
Expand Down

0 comments on commit f039ea3

Please sign in to comment.