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

Method open

codespell_lib/_codespell.py:241–244  ·  view source on GitHub ↗
(self, filename: str)

Source from the content-addressed store, hash-verified

239 self.encdetector = UniversalDetector()
240
241 def open(self, filename: str) -> tuple[list[tuple[bool, int, list[str]]], str]:
242 if self.use_chardet:
243 return self.open_with_chardet(filename)
244 return self.open_with_internal(filename)
245
246 def open_with_chardet(
247 self, filename: str

Callers 5

parse_fileFunction · 0.80
test_basicFunction · 0.80
test_encodingFunction · 0.80
test_dictionary_sortingFunction · 0.80

Calls 2

open_with_chardetMethod · 0.95
open_with_internalMethod · 0.95

Tested by 4

test_basicFunction · 0.64
test_encodingFunction · 0.64
test_dictionary_sortingFunction · 0.64