-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy pathstl_bind.pyi
More file actions
124 lines (119 loc) · 3.85 KB
/
stl_bind.pyi
File metadata and controls
124 lines (119 loc) · 3.85 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
from __future__ import annotations
import typing
__all__ = [
"MapStringComplex",
"VectorPairStringDouble",
"get_complex_map",
"get_vector_of_pairs",
]
class MapStringComplex:
def __bool__(self) -> bool:
"""
Check whether the map is nonempty
"""
@typing.overload
def __contains__(self, arg0: str) -> bool: ...
@typing.overload
def __contains__(self, arg0: typing.Any) -> bool: ...
def __delitem__(self, arg0: str) -> None: ...
def __getitem__(self, arg0: str) -> complex: ...
def __init__(self) -> None: ...
def __iter__(self) -> typing.Iterator[str]: ...
def __len__(self) -> int: ...
def __repr__(self) -> str:
"""
Return the canonical string representation of this map.
"""
def __setitem__(self, arg0: str, arg1: complex) -> None: ...
def items(self) -> typing.ItemsView: ...
def keys(self) -> typing.KeysView: ...
def values(self) -> typing.ValuesView: ...
class VectorPairStringDouble:
__hash__: typing.ClassVar[typing.Any] = None
def __bool__(self) -> bool:
"""
Check whether the list is nonempty
"""
def __contains__(self, x: tuple[str, float]) -> bool:
"""
Return true the container contains ``x``
"""
@typing.overload
def __delitem__(self, arg0: int) -> None:
"""
Delete the list elements at index ``i``
"""
@typing.overload
def __delitem__(self, arg0: slice) -> None:
"""
Delete list elements using a slice object
"""
def __eq__(self, arg0: VectorPairStringDouble) -> bool: ...
@typing.overload
def __getitem__(self, s: slice) -> VectorPairStringDouble:
"""
Retrieve list elements using a slice object
"""
@typing.overload
def __getitem__(self, arg0: int) -> tuple[str, float]: ...
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, arg0: VectorPairStringDouble) -> None:
"""
Copy constructor
"""
@typing.overload
def __init__(self, arg0: typing.Iterable) -> None: ...
def __iter__(self) -> typing.Iterator[tuple[str, float]]: ...
def __len__(self) -> int: ...
def __ne__(self, arg0: VectorPairStringDouble) -> bool: ...
@typing.overload
def __setitem__(self, arg0: int, arg1: tuple[str, float]) -> None: ...
@typing.overload
def __setitem__(self, arg0: slice, arg1: VectorPairStringDouble) -> None:
"""
Assign list elements using a slice object
"""
def append(self, x: tuple[str, float]) -> None:
"""
Add an item to the end of the list
"""
def clear(self) -> None:
"""
Clear the contents
"""
def count(self, x: tuple[str, float]) -> int:
"""
Return the number of times ``x`` appears in the list
"""
@typing.overload
def extend(self, L: VectorPairStringDouble) -> None:
"""
Extend the list by appending all the items in the given list
"""
@typing.overload
def extend(self, L: typing.Iterable) -> None:
"""
Extend the list by appending all the items in the given list
"""
def insert(self, i: int, x: tuple[str, float]) -> None:
"""
Insert an item at a given position.
"""
@typing.overload
def pop(self) -> tuple[str, float]:
"""
Remove and return the last item
"""
@typing.overload
def pop(self, i: int) -> tuple[str, float]:
"""
Remove and return the item at index ``i``
"""
def remove(self, x: tuple[str, float]) -> None:
"""
Remove the first item from the list whose value is x. It is an error if there is no such item.
"""
def get_complex_map() -> MapStringComplex: ...
def get_vector_of_pairs() -> VectorPairStringDouble: ...