MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / get

Method get

scratchattach/editor/mutation.py:321–328  ·  view source on GitHub ↗
(_lst: list | tuple | None, _idx: int)

Source from the content-addressed store, hash-verified

319 _has_next = json.loads(_has_next)
320
321 def get(_lst: list | tuple | None, _idx: int):
322 if _lst is None:
323 return None
324
325 if len(_lst) <= _idx:
326 return None
327 else:
328 return _lst[_idx]
329
330 if _argument_ids is None:
331 _arguments = None

Callers 15

from_jsonMethod · 0.45
from_jsonMethod · 0.45
from_jsonMethod · 0.45
from_jsonMethod · 0.45
from_jsonMethod · 0.45
parse_prim_fieldsFunction · 0.45
from_jsonMethod · 0.45
from_jsonMethod · 0.45
from_jsonMethod · 0.45
dataMethod · 0.45
from_jsonMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected