massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2 / UserString.pyi
1 import collections\r
2 from typing import Any, Iterable, List, MutableSequence, Sequence, Optional, overload, Text, TypeVar, Tuple, Union\r
3 \r
4 _UST = TypeVar("_UST", bound=UserString)\r
5 _MST = TypeVar("_MST", bound=MutableString)\r
6 \r
7 class UserString(Sequence[UserString]):\r
8     def __init__(self, seq: object) -> None: ...\r
9     def __int__(self) -> int: ...\r
10     def __long__(self) -> long: ...\r
11     def __float__(self) -> float: ...\r
12     def __complex__(self) -> complex: ...\r
13     def __hash__(self) -> int: ...\r
14     def __len__(self) -> int: ...\r
15     @overload\r
16     def __getitem__(self: _UST, i: int) -> _UST: ...\r
17     @overload\r
18     def __getitem__(self: _UST, s: slice) -> _UST: ...\r
19     def __add__(self: _UST, other: Any) -> _UST: ...\r
20     def __radd__(self: _UST, other: Any) -> _UST: ...\r
21     def __mul__(self: _UST, other: int) -> _UST: ...\r
22     def __rmul__(self: _UST, other: int) -> _UST: ...\r
23     def __mod__(self: _UST, args: Any) -> _UST: ...\r
24     def capitalize(self: _UST) -> _UST: ...\r
25     def center(self: _UST, width: int, *args: Any) -> _UST: ...\r
26     def count(self, sub: int, start: int = ..., end: int = ...) -> int: ...\r
27     def decode(self: _UST, encoding: Optional[str] = ..., errors: Optional[str] = ...) -> _UST: ...\r
28     def encode(self: _UST, encoding: Optional[str] = ..., errors: Optional[str] = ...) -> _UST: ...\r
29     def endswith(self, suffix: Text, start: int = ..., end: int = ...) -> bool: ...\r
30     def expandtabs(self: _UST, tabsize: int = ...) -> _UST: ...\r
31     def find(self, sub: Text, start: int = ..., end: int = ...) -> int: ...\r
32     def index(self, sub: Text, start: int = ..., end: int = ...) -> int: ...\r
33     def isalpha(self) -> bool: ...\r
34     def isalnum(self) -> bool: ...\r
35     def isdecimal(self) -> bool: ...\r
36     def isdigit(self) -> bool: ...\r
37     def islower(self) -> bool: ...\r
38     def isnumeric(self) -> bool: ...\r
39     def isspace(self) -> bool: ...\r
40     def istitle(self) -> bool: ...\r
41     def isupper(self) -> bool: ...\r
42     def join(self, seq: Iterable[Text]) -> Text: ...\r
43     def ljust(self: _UST, width: int, *args: Any) -> _UST: ...\r
44     def lower(self: _UST) -> _UST: ...\r
45     def lstrip(self: _UST, chars: Optional[Text] = ...) -> _UST: ...\r
46     def partition(self, sep: Text) -> Tuple[Text, Text, Text]: ...\r
47     def replace(self: _UST, old: Text, new: Text, maxsplit: int = ...) -> _UST: ...\r
48     def rfind(self, sub: Text, start: int = ..., end: int = ...) -> int: ...\r
49     def rindex(self, sub: Text, start: int = ..., end: int = ...) -> int: ...\r
50     def rjust(self: _UST, width: int, *args: Any) -> _UST: ...\r
51     def rpartition(self, sep: Text) -> Tuple[Text, Text, Text]: ...\r
52     def rstrip(self: _UST, chars: Optional[Text] = ...) -> _UST: ...\r
53     def split(self, sep: Optional[Text] = ..., maxsplit: int = ...) -> List[Text]: ...\r
54     def rsplit(self, sep: Optional[Text] = ..., maxsplit: int = ...) -> List[Text]: ...\r
55     def splitlines(self, keepends: int = ...) -> List[Text]: ...\r
56     def startswith(self, suffix: Text, start: int = ..., end: int = ...) -> bool: ...\r
57     def strip(self: _UST, chars: Optional[Text] = ...) -> _UST: ...\r
58     def swapcase(self: _UST) -> _UST: ...\r
59     def title(self: _UST) -> _UST: ...\r
60     def translate(self: _UST, *args: Any) -> _UST: ...\r
61     def upper(self: _UST) -> _UST: ...\r
62     def zfill(self: _UST, width: int) -> _UST: ...\r
63 \r
64 class MutableString(UserString, MutableSequence[MutableString]):\r
65     def __setitem__(self, index: Union[int, slice], sub: Any) -> None: ...\r
66     def __delitem__(self, index: Union[int, slice]) -> None: ...\r
67     def immutable(self) -> UserString: ...\r
68     def __iadd__(self: _MST, other: Any) -> _MST: ...\r
69     def __imul__(self, n: int) -> _MST: ...\r
70     def insert(self, index: int, value: Any) -> None: ...\r