MCPcopy Index your code
hub / github.com/ZeroIntensity/pointers.py / get_converter

Function get_converter

gen.py:387–400  ·  view source on GitHub ↗
(data: str, typ: str)

Source from the content-addressed store, hash-verified

385
386
387def get_converter(data: str, typ: str) -> str:
388 if typ == "StringLike":
389 return f"make_string({data})"
390
391 elif typ == "CharLike":
392 return f"make_char({data})"
393
394 elif typ == "Format":
395 return f"make_format({data})"
396
397 elif typ == "PyObjectLike":
398 return f"_deref_maybe({data})"
399
400 return data
401
402
403async def main():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected