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

Method _update

src/blib2to3/pgen2/grammar.py:117–119  ·  view source on GitHub ↗
(self, attrs: dict[str, Any])

Source from the content-addressed store, hash-verified

115 os.replace(f.name, filename)
116
117 def _update(self, attrs: dict[str, Any]) -> None:
118 for k, v in attrs.items():
119 setattr(self, k, v)
120
121 def load(self, filename: Path) -> None:
122 """Load the grammar tables from a pickle file."""

Callers 2

loadMethod · 0.95
loadsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected