You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With #96, tapify() was introduced, which automagically produces and executes the appropriate argparse code based on the type annotations of the passed function:
fromtapimporttapifydefadd(num_1: float, num_2: float) ->float:
print(f'The sum of {num_1} and {num_2} is {num_1+num_2}.')
if__name__=='__main__':
tapify(add)
similar to python-fire, tapify should support objects and/or classes, such that subparsers are created for each method. e.g.: