Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
monoxgas committed Nov 15, 2024
1 parent b026fff commit a26656f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rigging/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def parse_output(annotation: t.Any, error_name: str, *, allow_nested: bool = Tru

return TupleOutput(id="tuple", context=context or Ctx(), interiors=tuple_interiors)

if dataclasses.is_dataclass(annotation):
if dataclasses.is_dataclass(annotation) and type(annotation) is type:
interior_annotations: list[t.Any] = []
for field in dataclasses.fields(annotation):
field_annotation, field_context = unwrap_annotated(field.type)
Expand Down

0 comments on commit a26656f

Please sign in to comment.