MCPcopy Index your code
hub / github.com/python/mypy / DecodeError

Class DecodeError

mypy/util.py:154–158  ·  view source on GitHub ↗

Exception raised when a file cannot be decoded due to an unknown encoding type. Essentially a wrapper for the LookupError raised by `bytearray.decode`

Source from the content-addressed store, hash-verified

152
153
154class DecodeError(Exception):
155 """Exception raised when a file cannot be decoded due to an unknown encoding type.
156
157 Essentially a wrapper for the LookupError raised by `bytearray.decode`
158 """
159
160
161def decode_python_encoding(source: bytes) -> str:

Callers 1

decode_python_encodingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…