MCPcopy Create free account
hub / github.com/modelscope/modelscope / load

Method load

modelscope/fileio/format/yaml.py:15–17  ·  view source on GitHub ↗
(self, file, **kwargs)

Source from the content-addressed store, hash-verified

13class YamlHandler(FormatHandler):
14
15 def load(self, file, **kwargs):
16 kwargs.setdefault('Loader', Loader)
17 return yaml.safe_load(file)
18
19 def dump(self, obj, file, **kwargs):
20 kwargs.setdefault('Dumper', Dumper)

Callers 1

loadFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected