MCPcopy Create free account
hub / github.com/datacamp/pythonwhat / get_arg_parts

Method get_arg_parts

pythonwhat/parsing.py:158–165  ·  view source on GitHub ↗
(arguments, defaults, type)

Source from the content-addressed store, hash-verified

156
157 @staticmethod
158 def get_arg_parts(arguments, defaults, type):
159 # only difference is that it doesn't pull out arg.arg, so we can
160 # use all the information on the arg node down the road
161 match_def = [None] * (len(arguments) - len(defaults)) + defaults
162 part_list = []
163 for _arg, _def in zip(arguments, match_def):
164 part_list.append(Parser.get_arg_part(_arg, _def))
165 return part_list
166
167 @staticmethod
168 def get_arg_part(_arg, _def, type=None):

Callers 1

parse_nodeMethod · 0.80

Calls 1

get_arg_partMethod · 0.80

Tested by

no test coverage detected