1 from typing import Any, Dict, Iterator, List, Optional, Tuple
\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
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
30 class DbfilenameShelf(Shelf):
\r
31 def __init__(self, filename: str, flag: str = ..., protocol: Optional[int] = ..., writeback: bool = ...) -> None: ...
\r
33 def open(filename: str, flag: str = ..., protocol: Optional[int] = ..., writeback: bool = ...) -> DbfilenameShelf: ...
\r