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

Method encode

mypyc/test-data/fixtures/ir.py:130–130  ·  view source on GitHub ↗
(self, encoding: str=..., errors: str=...)

Source from the content-addressed store, hash-verified

128 def endswith(self, x: Union[str, Tuple[str, ...]], start: int=..., end: int=...) -> bool: ...
129 def replace(self, old: str, new: str, maxcount: int=...) -> str: ...
130 def encode(self, encoding: str=..., errors: str=...) -> bytes: ...
131 def partition(self, sep: str, /) -> Tuple[str, str, str]: ...
132 def rpartition(self, sep: str, /) -> Tuple[str, str, str]: ...
133 def removeprefix(self, prefix: str, /) -> str: ...

Callers 15

compute_hashFunction · 0.80
safe_printFunction · 0.80
writeMethod · 0.80
write_junit_xmlFunction · 0.80
parse_gray_colorFunction · 0.80
json_dumpsFunction · 0.80
infer_sig_from_docstringFunction · 0.80
test_as_xmlMethod · 0.80
apply_diffFunction · 0.80
group_nameFunction · 0.80
write_fileFunction · 0.80

Calls

no outgoing calls

Tested by 2

safe_printFunction · 0.64
test_as_xmlMethod · 0.64