Skip to content

Commit

Permalink
drop comments
Browse files Browse the repository at this point in the history
  • Loading branch information
emilhe committed Jul 2, 2023
1 parent 8a474ff commit 775a90f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions dash_extensions/enrich.py
Original file line number Diff line number Diff line change
Expand Up @@ -1045,13 +1045,11 @@ def decorated_function(*args, **kwargs):
# Replace args and kwargs. # TODO: Is recursion needed?
for i, arg in enumerate(args):
an = full_arg_spec.annotations.get(full_arg_spec.args[i])
# TODO: Pass annotation here also?
value = [self._try_load(a, an) for a in arg] if isinstance(arg, list) else self._try_load(arg, an)
args[i] = value
for key in kwargs:
arg = kwargs[key]
an = full_arg_spec.annotations.get(key)
# TODO: Pass annotation here also?
value = [self._try_load(a, an) for a in arg] if isinstance(arg, list) else self._try_load(arg, an)
kwargs[key] = value
# Evaluate function.
Expand Down

0 comments on commit 775a90f

Please sign in to comment.