massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2 / shelve.pyi
1 from typing import Any, Dict, Iterator, List, Optional, Tuple\r
2 import collections\r
3 \r
4 \r
5 class Shelf(collections.MutableMapping):\r
6     def __init__(self, dict: Dict[Any, Any], protocol: Optional[int] = ..., writeback: bool = ..., keyencoding: str = ...) -> None: ...\r
7     def __iter__(self) -> Iterator[str]: ...\r
8     def keys(self) -> List[Any]: ...\r
9     def __len__(self) -> int: ...\r
10     def has_key(self, key: Any) -> bool: ...\r
11     def __contains__(self, key: Any) -> bool: ...\r
12     def get(self, key: Any, default: Any = ...) -> Any: ...\r
13     def __getitem__(self, key: Any) -> Any: ...\r
14     def __setitem__(self, key: Any, value: Any) -> None: ...\r
15     def __delitem__(self, key: Any) -> None: ...\r
16     def __enter__(self) -> Shelf: ...\r
17     def __exit__(self, type: Any, value: Any, traceback: Any) -> None: ...\r
18     def close(self) -> None: ...\r
19     def __del__(self) -> None: ...\r
20     def sync(self) -> None: ...\r
21 \r
22 class BsdDbShelf(Shelf):\r
23     def __init__(self, dict: Dict[Any, Any], protocol: Optional[int] = ..., writeback: bool = ..., keyencoding: str = ...) -> None: ...\r
24     def set_location(self, key: Any) -> Tuple[str, Any]: ...\r
25     def next(self) -> Tuple[str, Any]: ...\r
26     def previous(self) -> Tuple[str, Any]: ...\r
27     def first(self) -> Tuple[str, Any]: ...\r
28     def last(self) -> Tuple[str, Any]: ...\r
29 \r
30 class DbfilenameShelf(Shelf):\r
31     def __init__(self, filename: str, flag: str = ..., protocol: Optional[int] = ..., writeback: bool = ...) -> None: ...\r
32 \r
33 def open(filename: str, flag: str = ..., protocol: Optional[int] = ..., writeback: bool = ...) -> DbfilenameShelf: ...\r