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

Class bytes

mypyc/test-data/fixtures/ir.py:173–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171 def __neg__(self) -> complex: pass
172
173class bytes:
174 @overload
175 def __init__(self) -> None: ...
176 @overload
177 def __init__(self, x: object) -> None: ...
178 def __add__(self, x: bytes | bytearray) -> bytes: ...
179 def __mul__(self, x: int) -> bytes: ...
180 def __rmul__(self, x: int) -> bytes: ...
181 def __eq__(self, x: object) -> bool: ...
182 def __ne__(self, x: object) -> bool: ...
183 @overload
184 def __getitem__(self, i: int) -> int: ...
185 @overload
186 def __getitem__(self, i: slice) -> bytes: ...
187 def join(self, x: Iterable[object]) -> bytes: ...
188 def decode(self, encoding: str=..., errors: str=...) -> str: ...
189 def translate(self, t: bytes | bytearray) -> bytes: ...
190 def startswith(self, t: bytes | bytearray) -> bool: ...
191 def endswith(self, t: bytes | bytearray) -> bool: ...
192 def __iter__(self) -> Iterator[int]: ...
193
194class bytearray:
195 @overload

Callers 12

write_cache_metaFunction · 0.85
on_fileMethod · 0.85
on_finishMethod · 0.85
on_finishMethod · 0.85
frame_from_bufferMethod · 0.85
test_parserFunction · 0.85
test_parse_errorFunction · 0.85
bytes_from_strFunction · 0.85
test_c_stringMethod · 0.85
format_intFunction · 0.85

Calls

no outgoing calls

Tested by 5

test_parserFunction · 0.68
test_parse_errorFunction · 0.68
test_c_stringMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…