MCPcopy
hub / github.com/python/mypy / replace

Method replace

mypyc/test-data/fixtures/ir.py:129–129  ·  view source on GitHub ↗
(self, old: str, new: str, maxcount: int=...)

Source from the content-addressed store, hash-verified

127 def startswith(self, x: Union[str, Tuple[str, ...]], start: int=..., end: int=...) -> bool: ...
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]: ...

Callers 15

parse_enum_call_argsMethod · 0.80
parse_config_fileFunction · 0.80
parse_sectionFunction · 0.80
matches_excludeFunction · 0.80
generate_stubsFunction · 0.80
get_sourceMethod · 0.80
parse_namedtuple_argsMethod · 0.80

Calls

no outgoing calls

Tested by 15

safe_inspect_signatureFunction · 0.64
normalise_pathFunction · 0.64
run_caseMethod · 0.64
maybe_suggestMethod · 0.64
test_output_jsonFunction · 0.64
test_python_evaluationFunction · 0.64
assert_expandMethod · 0.64
run_caseMethod · 0.64
test_pep561Function · 0.64
run_case_innerMethod · 0.64
add_fileMethod · 0.64
module_to_pathFunction · 0.64