massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2 / stringold.pyi
diff --git a/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/2/stringold.pyi b/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/2/stringold.pyi
new file mode 100644 (file)
index 0000000..92163e8
--- /dev/null
@@ -0,0 +1,46 @@
+# Source: https://hg.python.org/cpython/file/2.7/Lib/stringold.py\r
+from typing import AnyStr, Iterable, List, Optional, Type\r
+\r
+whitespace = ...  # type: str\r
+lowercase = ...  # type: str\r
+uppercase = ...  # type: str\r
+letters = ...  # type: str\r
+digits = ...  # type: str\r
+hexdigits = ...  # type: str\r
+octdigits = ...  # type: str\r
+_idmap = ...  # type: str\r
+_idmapL = ...  # type: Optional[List[str]]\r
+index_error = ValueError\r
+atoi_error = ValueError\r
+atof_error = ValueError\r
+atol_error = ValueError\r
+\r
+\r
+def lower(s: AnyStr) -> AnyStr: ...\r
+def upper(s: AnyStr) -> AnyStr: ...\r
+def swapcase(s: AnyStr) -> AnyStr: ...\r
+def strip(s: AnyStr) -> AnyStr: ...\r
+def lstrip(s: AnyStr) -> AnyStr: ...\r
+def rstrip(s: AnyStr) -> AnyStr: ...\r
+def split(s: AnyStr, sep: AnyStr = ..., maxsplit: int = ...) -> List[AnyStr]: ...\r
+def splitfields(s: AnyStr, sep: AnyStr = ..., maxsplit: int = ...) -> List[AnyStr]: ...\r
+def join(words: Iterable[AnyStr], sep: AnyStr = ...) -> AnyStr: ...\r
+def joinfields(words: Iterable[AnyStr], sep: AnyStr = ...) -> AnyStr: ...\r
+def index(s: unicode, sub: unicode, start: int = ..., end: int = ...) -> int: ...\r
+def rindex(s: unicode, sub: unicode, start: int = ..., end: int = ...) -> int: ...\r
+def count(s: unicode, sub: unicode, start: int = ..., end: int = ...) -> int: ...\r
+def find(s: unicode, sub: unicode, start: int = ..., end: int = ...) -> int: ...\r
+def rfind(s: unicode, sub: unicode, start: int = ..., end: int = ...) -> int: ...\r
+def atof(s: unicode) -> float: ...\r
+def atoi(s: unicode, base: int = ...) -> int: ...\r
+def atol(s: unicode, base: int = ...) -> long: ...\r
+def ljust(s: AnyStr, width: int, fillchar: AnyStr = ...) -> AnyStr: ...\r
+def rjust(s: AnyStr, width: int, fillchar: AnyStr = ...) -> AnyStr: ...\r
+def center(s: AnyStr, width: int, fillchar: AnyStr = ...) -> AnyStr: ...\r
+def zfill(s: AnyStr, width: int) -> AnyStr: ...\r
+def expandtabs(s: AnyStr, tabsize: int = ...) -> AnyStr: ...\r
+def translate(s: str, table: str, deletions: str = ...) -> str: ...\r
+def capitalize(s: AnyStr) -> AnyStr: ...\r
+def capwords(s: AnyStr, sep: AnyStr = ...) -> AnyStr: ...\r
+def maketrans(fromstr: str, tostr: str) -> str: ...\r
+def replace(s: AnyStr, old: AnyStr, new: AnyStr, maxreplace: int = ...) -> AnyStr: ...\r