MCPcopy Index your code
hub / github.com/codespell-project/codespell / update

Method update

codespell_lib/_codespell.py:196–200  ·  view source on GitHub ↗
(self, wrongword: str)

Source from the content-addressed store, hash-verified

194 self.summary: dict[str, int] = {}
195
196 def update(self, wrongword: str) -> None:
197 if wrongword in self.summary:
198 self.summary[wrongword] += 1
199 else:
200 self.summary[wrongword] = 1
201
202 def __str__(self) -> str:
203 keys = list(self.summary.keys())

Callers 3

build_exclude_hashesFunction · 0.80
parse_linesFunction · 0.80
parse_fileFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected