Skip to content

Commit

Permalink
Corrected argument order (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
couling authored Feb 16, 2024
1 parent 618bb17 commit e774f7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataclass_click/dataclass_click.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def wrapper(*args, **kwargs):
args = (arg_class_object, *args)
return func(*args, **kwargs)

for annotation in annotations.values():
for annotation in reversed(annotations.values()):
delayed_decorator = annotation.callable(*annotation.args, **annotation.kwargs)
wrapper = delayed_decorator(wrapper)

Expand Down

0 comments on commit e774f7e

Please sign in to comment.