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

Method get_pos_arg_part

pythonwhat/parsing.py:386–394  ·  view source on GitHub ↗
(arg, indx_pos)

Source from the content-addressed store, hash-verified

384
385 @staticmethod
386 def get_pos_arg_part(arg, indx_pos):
387 is_star = isinstance(arg, ast.Starred)
388 return {
389 "node": arg if not is_star else arg.value,
390 "highlight": arg,
391 "type": "argument",
392 "is_starred": is_star,
393 "name": indx_pos,
394 }
395
396 @staticmethod
397 def get_kw_arg_part(arg):

Callers 1

get_call_partMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected