massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3 / shelve.pyi
diff --git a/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/3/shelve.pyi b/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/3/shelve.pyi
new file mode 100644 (file)
index 0000000..87261d7
--- /dev/null
@@ -0,0 +1,31 @@
+from typing import Any, Dict, Iterator, Optional, Tuple\r
+import collections\r
+\r
+\r
+class Shelf(collections.MutableMapping):\r
+    def __init__(self, dict: Dict[bytes, Any], protocol: Optional[int] = ..., writeback: bool = ..., keyencoding: str = ...) -> None: ...\r
+    def __iter__(self) -> Iterator[str]: ...\r
+    def __len__(self) -> int: ...\r
+    def __contains__(self, key: Any) -> bool: ...  # key should be str, but it would conflict with superclass's type signature\r
+    def get(self, key: str, default: Any = ...) -> Any: ...\r
+    def __getitem__(self, key: str) -> Any: ...\r
+    def __setitem__(self, key: str, value: Any) -> None: ...\r
+    def __delitem__(self, key: str) -> None: ...\r
+    def __enter__(self) -> Shelf: ...\r
+    def __exit__(self, type: Any, value: Any, traceback: Any) -> None: ...\r
+    def close(self) -> None: ...\r
+    def __del__(self) -> None: ...\r
+    def sync(self) -> None: ...\r
+\r
+class BsdDbShelf(Shelf):\r
+    def __init__(self, dict: Dict[bytes, Any], protocol: Optional[int] = ..., writeback: bool = ..., keyencoding: str = ...) -> None: ...\r
+    def set_location(self, key: Any) -> Tuple[str, Any]: ...\r
+    def next(self) -> Tuple[str, Any]: ...\r
+    def previous(self) -> Tuple[str, Any]: ...\r
+    def first(self) -> Tuple[str, Any]: ...\r
+    def last(self) -> Tuple[str, Any]: ...\r
+\r
+class DbfilenameShelf(Shelf):\r
+    def __init__(self, filename: str, flag: str = ..., protocol: Optional[int] = ..., writeback: bool = ...) -> None: ...\r
+\r
+def open(filename: str, flag: str = ..., protocol: Optional[int] = ..., writeback: bool = ...) -> DbfilenameShelf: ...\r