MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / _dummy

Function _dummy

sdks/python/tests/test_v1_client.py:66–78  ·  view source on GitHub ↗
(ann)

Source from the content-addressed store, hash-verified

64
65
66def _dummy(ann):
67 s = str(ann)
68 if "bool" in s:
69 return False
70 if "int" in s:
71 return 0
72 if "float" in s:
73 return 0.0
74 if "List" in s or "list" in s:
75 return []
76 if "Dict" in s or "dict" in s or "Mapping" in s:
77 return {}
78 return ""
79
80
81def _valid(model_cls, **overrides):

Callers 1

_validFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected