/
orderedset.pyi
93 lines (60 loc) · 1.35 KB
/
orderedset.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
from collections import MutableSet, Sequence
from typing import Any
SLICE_ALL: Any
def is_iterable(obj):
...
class OrderedSet(MutableSet, Sequence):
items: Any
map: Any
def __init__(self, iterable: Any | None = ...) -> None:
...
def __len__(self):
...
def __getitem__(self, index):
...
def copy(self):
...
def __contains__(self, key):
...
def add(self, key):
...
append: Any
def update(self, sequence):
...
def index(self, key):
...
get_loc: Any
get_indexer: Any
def pop(self):
...
def discard(self, key) -> None:
...
def clear(self) -> None:
...
def __iter__(self):
...
def __reversed__(self):
...
def __eq__(self, other):
...
def union(self, *sets):
...
def __and__(self, other):
...
def intersection(self, *sets):
...
def difference(self, *sets):
...
def issubset(self, other):
...
def issuperset(self, other):
...
def symmetric_difference(self, other):
...
def difference_update(self, *sets) -> None:
...
def intersection_update(self, other) -> None:
...
def symmetric_difference_update(self, other) -> None:
...
oset = OrderedSet