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

Class str

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

Source from the content-addressed store, hash-verified

93 def bit_length(self) -> int: pass
94
95class str:
96 @overload
97 def __init__(self) -> None: pass
98 @overload
99 def __init__(self, x: object) -> None: pass
100 def __add__(self, x: str) -> str: pass
101 def __mul__(self, x: int) -> str: pass
102 def __rmul__(self, x: int) -> str: pass
103 def __eq__(self, x: object) -> bool: pass
104 def __ne__(self, x: object) -> bool: pass
105 def __lt__(self, x: str) -> bool: ...
106 def __le__(self, x: str) -> bool: ...
107 def __gt__(self, x: str) -> bool: ...
108 def __ge__(self, x: str) -> bool: ...
109 @overload
110 def __getitem__(self, i: int) -> str: pass
111 @overload
112 def __getitem__(self, i: slice) -> str: pass
113 def __contains__(self, item: str) -> bool: pass
114 def __iter__(self) -> Iterator[str]: ...
115 def find(self, sub: str, start: Optional[int] = None, end: Optional[int] = None, /) -> int: ...
116 def rfind(self, sub: str, start: Optional[int] = None, end: Optional[int] = None, /) -> int: ...
117 def split(self, sep: Optional[str] = None, maxsplit: int = -1) -> List[str]: pass
118 def rsplit(self, sep: Optional[str] = None, maxsplit: int = -1) -> List[str]: pass
119 def splitlines(self, keepends: bool = False) -> List[str]: ...
120 def strip (self, item: Optional[str] = None) -> str: pass
121 def lstrip(self, item: Optional[str] = None) -> str: pass
122 def rstrip(self, item: Optional[str] = None) -> str: pass
123 def join(self, x: Iterable[str]) -> str: pass
124 def format(self, *args: Any, **kwargs: Any) -> str: ...
125 def lower(self) -> str: ...
126 def upper(self) -> str: ...
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]: ...
133 def removeprefix(self, prefix: str, /) -> str: ...
134 def removesuffix(self, suffix: str, /) -> str: ...
135 def islower(self) -> bool: ...
136 def count(self, substr: str, start: Optional[int] = None, end: Optional[int] = None) -> int: pass
137 def isspace(self) -> bool: ...
138 def isalnum(self) -> bool: ...
139 def isdigit(self) -> bool: ...
140
141class float:
142 def __init__(self, x: object) -> None: pass

Callers 15

gen_unique_nameFunction · 0.85
get_package_propertiesFunction · 0.85
workerFunction · 0.85
check_enum_callMethod · 0.85
parse_versionFunction · 0.85
config_parser.pyFile · 0.85
parse_sectionFunction · 0.85
convert_to_booleanFunction · 0.85
collect_build_targetsFunction · 0.85
from_operatorMethod · 0.85
from_comp_operatorMethod · 0.85

Calls

no outgoing calls

Tested by 15

__init__Method · 0.68
get_typeMethod · 0.68
verify_funcitemFunction · 0.68
verify_overloadedfuncdefFunction · 0.68
verify_typealiasFunction · 0.68
run_caseMethod · 0.68
perform_stepMethod · 0.68
get_suggestMethod · 0.68
get_inspectMethod · 0.68
test_anyMethod · 0.68