massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2and3 / array.pyi
diff --git a/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/2and3/array.pyi b/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/2and3/array.pyi
new file mode 100644 (file)
index 0000000..a2d1334
--- /dev/null
@@ -0,0 +1,73 @@
+# Stubs for array\r
+\r
+# Based on http://docs.python.org/3.6/library/array.html\r
+\r
+import sys\r
+from typing import (Any, BinaryIO, Generic, Iterable, Iterator, List, MutableSequence,\r
+                    overload, Text, Tuple, TypeVar, Union)\r
+\r
+_T = TypeVar('_T', int, float, Text)\r
+\r
+if sys.version_info >= (3,):\r
+    typecodes = ...  # type: str\r
+\r
+class array(MutableSequence[_T], Generic[_T]):\r
+    typecode = ...  # type: str\r
+    itemsize = ...  # type: int\r
+    def __init__(self, typecode: str,\r
+                 __initializer: Union[bytes, Iterable[_T]] = ...) -> None: ...\r
+    def append(self, x: _T) -> None: ...\r
+    def buffer_info(self) -> Tuple[int, int]: ...\r
+    def byteswap(self) -> None: ...\r
+    def count(self, x: Any) -> int: ...\r
+    def extend(self, iterable: Iterable[_T]) -> None: ...\r
+    if sys.version_info >= (3, 2):\r
+        def frombytes(self, s: bytes) -> None: ...\r
+    def fromfile(self, f: BinaryIO, n: int) -> None: ...\r
+    def fromlist(self, list: List[_T]) -> None: ...\r
+    def fromstring(self, s: bytes) -> None: ...\r
+    def fromunicode(self, s: str) -> None: ...\r
+    def index(self, x: _T) -> int: ...  # type: ignore  # Overrides Sequence\r
+    def insert(self, i: int, x: _T) -> None: ...\r
+    def pop(self, i: int = ...) -> _T: ...\r
+    if sys.version_info < (3,):\r
+        def read(self, f: BinaryIO, n: int) -> None: ...\r
+    def remove(self, x: Any) -> None: ...\r
+    def reverse(self) -> None: ...\r
+    if sys.version_info >= (3, 2):\r
+        def tobytes(self) -> bytes: ...\r
+    def tofile(self, f: BinaryIO) -> None: ...\r
+    def tolist(self) -> List[_T]: ...\r
+    def tostring(self) -> bytes: ...\r
+    def tounicode(self) -> str: ...\r
+    if sys.version_info < (3,):\r
+        def write(self, f: BinaryIO) -> None: ...\r
+\r
+    def __len__(self) -> int: ...\r
+\r
+    @overload\r
+    def __getitem__(self, i: int) -> _T: ...\r
+    @overload\r
+    def __getitem__(self, s: slice) -> array[_T]: ...\r
+\r
+    @overload  # type: ignore  # Overrides MutableSequence\r
+    def __setitem__(self, i: int, o: _T) -> None: ...\r
+    @overload\r
+    def __setitem__(self, s: slice, o: array[_T]) -> None: ...\r
+\r
+    def __delitem__(self, i: Union[int, slice]) -> None: ...\r
+    def __add__(self, x: array[_T]) -> array[_T]: ...\r
+    def __ge__(self, other: array[_T]) -> bool: ...\r
+    def __gt__(self, other: array[_T]) -> bool: ...\r
+    def __iadd__(self, x: array[_T]) -> array[_T]: ...  # type: ignore  # Overrides MutableSequence\r
+    def __imul__(self, n: int) -> array[_T]: ...\r
+    def __le__(self, other: array[_T]) -> bool: ...\r
+    def __lt__(self, other: array[_T]) -> bool: ...\r
+    def __mul__(self, n: int) -> array[_T]: ...\r
+    def __rmul__(self, n: int) -> array[_T]: ...\r
+    if sys.version_info < (3,):\r
+        def __delslice__(self, i: int, j: int) -> None: ...\r
+        def __getslice__(self, i: int, j: int) -> array[_T]: ...\r
+        def __setslice__(self, i: int, j: int, y: array[_T]) -> None: ...\r
+\r
+ArrayType = array\r