MCPcopy
hub / github.com/psf/black / load

Method load

src/blib2to3/pgen2/grammar.py:121–125  ·  view source on GitHub ↗

Load the grammar tables from a pickle file.

(self, filename: Path)

Source from the content-addressed store, hash-verified

119 setattr(self, k, v)
120
121 def load(self, filename: Path) -> None:
122 """Load the grammar tables from a pickle file."""
123 with open(filename, "rb") as f:
124 d = pickle.load(f)
125 self._update(d)
126
127 def loads(self, pkl: bytes) -> None:
128 """Load the grammar tables from a pickle bytes object."""

Callers 7

load_grammarFunction · 0.95
get_schemaFunction · 0.80
_load_tomlFunction · 0.80
readMethod · 0.80
test_schema_entrypointFunction · 0.80

Calls 1

_updateMethod · 0.95

Tested by 1

test_schema_entrypointFunction · 0.64