Skip to content
Snippets Groups Projects
Verified Commit ace1c8d5 authored by Daniel Williams's avatar Daniel Williams :cloud_snow:
Browse files

Removed inline comments.

parent 5707f827
No related branches found
No related tags found
1 merge request!608Add support for inference of method arguments
......@@ -59,13 +59,10 @@ def infer_parameters_from_function(func):
to be removed.
"""
if isinstance(func, types.MethodType):
# This is a method, remove the first two arguments
return _infer_args_from_function_except_n_args(func=func, n=2)
elif isinstance(func, types.FunctionType):
# It's a function, remove just the first argument
return _infer_args_from_function_except_for_first_arg(func=func)
else:
# Panic, I don't understand what I'm looking at
raise ValueError("This doesn't look like a function.")
......@@ -80,7 +77,6 @@ def infer_args_from_method(method):
---------
list: A list of strings with the parameters
"""
# This is a method, remove the first two arguments
return _infer_args_from_function_except_n_args(func=method, n=1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment