Skip to content

Commit

Permalink
Handle convert_input calls for private argument names
Browse files Browse the repository at this point in the history
  • Loading branch information
rikardn committed Oct 24, 2024
1 parent aea747f commit e66d1d6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions deploy/func_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,14 @@ def _preprocess_input(func):
if key == 'return':
continue
args, origin = get_args(value), get_origin(value)
if key.startswith('_'):
mangled_key = '.' + key[1:]
else:
mangled_key = key
if value is Union or origin is Union:
r_conversion = _get_conversion_str(key, args, origin)
r_conversion = _get_conversion_str(mangled_key, args, origin)
else:
r_conversion = _get_conversion_str(key, value, origin)
r_conversion = _get_conversion_str(mangled_key, value, origin)

if r_conversion is None:
continue
Expand Down

0 comments on commit e66d1d6

Please sign in to comment.