MCPcopy Index your code
hub / github.com/httpie/cli / wrapper

Function wrapper

httpie/cli/requestitems.py:176–184  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

174
175 @functools.wraps(processor)
176 def wrapper(*args, **kwargs) -> str:
177 try:
178 output = processor(*args, **kwargs)
179 except ParseError:
180 output = None
181 if isinstance(output, (str, int, float)):
182 return str(output)
183 else:
184 raise ParseError('Cannot use complex JSON value types with --form/--multipart.')
185
186 return wrapper
187

Callers

nothing calls this directly

Calls 1

ParseErrorClass · 0.85

Tested by

no test coverage detected