This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathimrc.pyi
51 lines (47 loc) · 1.61 KB
/
imrc.pyi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
from typing import (
FrozenSet,
ItemsView,
Iterable,
Iterator,
KeysView,
Mapping,
TypeVar,
ValuesView,
)
T = TypeVar("T")
KT = TypeVar("KT", covariant=True)
VT = TypeVar("VT", covariant=True)
class HashTrieMap(Mapping[KT, VT]):
def __init__(
self,
value: Mapping[KT, VT] | Iterable[tuple[KT, VT]] = {},
**kwds: Mapping[KT, VT],
): ...
def __getitem__(self, key: KT) -> VT: ...
def __iter__(self) -> Iterator[KT]: ...
def __len__(self) -> int: ...
def discard(self, key: KT) -> "HashTrieMap[KT, VT]": ...
def items(self) -> ItemsView[KT, VT]: ...
def keys(self) -> KeysView[KT]: ...
def values(self) -> ValuesView[VT]: ...
def remove(self, key: KT) -> "HashTrieMap[KT, VT]": ...
def insert(self, key: KT, val: VT) -> "HashTrieMap[KT, VT]": ...
def update(self, *args: Mapping): ...
@classmethod
def convert(
cls,
value: Mapping[KT, VT] | Iterable[tuple[KT, VT]],
) -> "HashTrieMap[KT, VT]": ...
class HashTrieSet(FrozenSet[T]):
def __init__(self, value: Iterable[T] = ()): ...
def __iter__(self) -> Iterator[T]: ...
def __len__(self) -> int: ...
def discard(self, value: T) -> "HashTrieSet[T]": ...
def remove(self, value: T) -> "HashTrieSet[T]": ...
def insert(self, value: T) -> "HashTrieSet[T]": ...
def update(self, *args: Iterable[T]) -> "HashTrieSet[T]": ...
class List(Iterable[T]):
def __init__(self, value: Iterable[T] = (), *more: T): ...
def __iter__(self) -> Iterator[T]: ...
def __len__(self) -> int: ...
def push_front(self, value: T) -> "List[T]": ...