MCPcopy Index your code
hub / github.com/python-jsonschema/jsonschema / from_arguments

Method from_arguments

jsonschema/cli.py:43–48  ·  view source on GitHub ↗
(cls, arguments, stdout, stderr)

Source from the content-addressed store, hash-verified

41
42 @classmethod
43 def from_arguments(cls, arguments, stdout, stderr):
44 if arguments["output"] == "plain":
45 formatter = _PlainFormatter(arguments["error_format"])
46 elif arguments["output"] == "pretty":
47 formatter = _PrettyFormatter()
48 return cls(formatter=formatter, stdout=stdout, stderr=stderr)
49
50 def load(self, path):
51 try:

Callers 1

runFunction · 0.80

Calls 2

_PlainFormatterClass · 0.85
_PrettyFormatterClass · 0.85

Tested by

no test coverage detected