Skip to content

Commit

Permalink
adding functools.wraps decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcampos committed Nov 6, 2024
1 parent 1c730da commit d72f03b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions release/scripts/mgear/pymaya/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ def _name_to_obj(arg, scope=SCOPE_NODE, known_node=None):


def _pymaya_cmd_wrap(func, wrap_object=True, scope=SCOPE_NODE):
@functools.wraps(func)
def wrapper(*args, **kwargs):
args = _obj_to_name(args)
kwargs = _obj_to_name(kwargs)
Expand Down

0 comments on commit d72f03b

Please sign in to comment.