forked from dartsim/dart
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.pyi
More file actions
230 lines (230 loc) · 6.68 KB
/
common.pyi
File metadata and controls
230 lines (230 loc) · 6.68 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
from __future__ import annotations
import typing
__all__: list[str] = ['Composite', 'LocalResource', 'LocalResourceRetriever', 'Observer', 'Resource', 'ResourceRetriever', 'Stopwatch', 'Subject', 'Uri', 'debug', 'error', 'fatal', 'info', 'split', 'tic', 'toLower', 'toUpper', 'toc', 'tocMS', 'tocNS', 'tocS', 'tocUS', 'trace', 'trim', 'trimLeft', 'trimRight', 'warn']
class Composite:
def __init__(self) -> None:
...
def copyCompositePropertiesTo(self, outgoingProperties: ..., std: ..., std: ..., std: ..., std: ..., std: ..., std: ..., dart: ...) -> None:
...
def copyCompositeStateTo(self, outgoingStates: ..., std: ..., std: ..., std: ..., std: ..., std: ..., std: ..., dart: ...) -> None:
...
def duplicateAspects(self, fromComposite: Composite) -> None:
...
def getCompositeProperties(self) -> ...:
...
def getCompositeState(self) -> ...:
...
def matchAspects(self, otherComposite: Composite) -> None:
...
def setCompositeProperties(self, newProperties: ..., std: ..., std: ..., std: ..., std: ..., std: ..., std: ..., dart: ...) -> None:
...
def setCompositeState(self, newStates: ..., std: ..., std: ..., std: ..., std: ..., std: ..., std: ..., dart: ...) -> None:
...
class Observer:
pass
class Resource:
def getSize(self) -> int:
...
def read(self, buffer: capsule, size: int, count: int) -> int:
...
def readAll(self) -> str:
...
def seek(self, offset: int, origin: ...) -> bool:
...
def tell(self) -> int:
...
class ResourceRetriever:
def exists(self, uri: Uri) -> bool:
...
def getFilePath(self, uri: Uri) -> str:
...
def readAll(self, uri: Uri) -> str:
...
def retrieve(self, uri: Uri) -> Resource:
...
class LocalResource(Resource):
def __init__(self, path: str) -> None:
...
def isGood(self) -> bool:
...
class LocalResourceRetriever(ResourceRetriever):
def __init__(self) -> None:
...
class Stopwatch:
def __init__(self, start: bool = True) -> None:
...
def elapsedMS(self) -> float:
...
def elapsedNS(self) -> float:
...
def elapsedS(self) -> float:
...
def elapsedUS(self) -> float:
...
def isStarted(self) -> bool:
...
def print(self) -> None:
...
def reset(self) -> None:
...
def start(self) -> None:
...
def stop(self) -> None:
...
class Subject:
pass
class Uri:
mAuthority: ...
mFragment: ...
mPath: ...
mQuery: ...
mScheme: ...
@staticmethod
def createFromPath(path: str) -> Uri:
...
@staticmethod
@typing.overload
def createFromRelativeUri(base: str, relative: str) -> Uri:
...
@staticmethod
@typing.overload
def createFromRelativeUri(base: str, relative: str, strict: bool) -> Uri:
...
@staticmethod
@typing.overload
def createFromRelativeUri(base: Uri, relative: str) -> Uri:
...
@staticmethod
@typing.overload
def createFromRelativeUri(base: Uri, relative: str, strict: bool) -> Uri:
...
@staticmethod
@typing.overload
def createFromRelativeUri(base: Uri, relative: Uri) -> Uri:
...
@staticmethod
@typing.overload
def createFromRelativeUri(base: Uri, relative: Uri, strict: bool) -> Uri:
...
@staticmethod
def createFromString(input: str) -> Uri:
...
@staticmethod
def createFromStringOrPath(input: str) -> Uri:
...
@staticmethod
@typing.overload
def getRelativeUri(base: str, relative: str) -> str:
...
@staticmethod
@typing.overload
def getRelativeUri(base: str, relative: str, strict: bool) -> str:
...
@staticmethod
@typing.overload
def getRelativeUri(base: Uri, relative: str) -> str:
...
@staticmethod
@typing.overload
def getRelativeUri(base: Uri, relative: str, strict: bool) -> str:
...
@staticmethod
@typing.overload
def getRelativeUri(base: Uri, relative: Uri) -> str:
...
@staticmethod
@typing.overload
def getRelativeUri(base: Uri, relative: Uri, strict: bool) -> str:
...
@staticmethod
def getUri(input: str) -> str:
...
@typing.overload
def __init__(self) -> None:
...
@typing.overload
def __init__(self, input: str) -> None:
...
@typing.overload
def __init__(self, input: str) -> None:
...
def clear(self) -> None:
...
def fromPath(self, path: str) -> bool:
...
@typing.overload
def fromRelativeUri(self, base: str, relative: str) -> bool:
...
@typing.overload
def fromRelativeUri(self, base: str, relative: str, strict: bool) -> bool:
...
@typing.overload
def fromRelativeUri(self, base: str, relative: str) -> bool:
...
@typing.overload
def fromRelativeUri(self, base: str, relative: str, strict: bool) -> bool:
...
@typing.overload
def fromRelativeUri(self, base: Uri, relative: str) -> bool:
...
@typing.overload
def fromRelativeUri(self, base: Uri, relative: str, strict: bool) -> bool:
...
@typing.overload
def fromRelativeUri(self, base: Uri, relative: str) -> bool:
...
@typing.overload
def fromRelativeUri(self, base: Uri, relative: str, strict: bool) -> bool:
...
@typing.overload
def fromRelativeUri(self, base: Uri, relative: Uri) -> bool:
...
@typing.overload
def fromRelativeUri(self, base: Uri, relative: Uri, strict: bool) -> bool:
...
def fromString(self, input: str) -> bool:
...
def fromStringOrPath(self, input: str) -> bool:
...
def getFilesystemPath(self) -> str:
...
def getPath(self) -> str:
...
def toString(self) -> str:
...
def debug(arg0: str) -> None:
...
def error(arg0: str) -> None:
...
def fatal(arg0: str) -> None:
...
def info(arg0: str) -> None:
...
def split(str: str, delimiters: str = ' \n\r\t') -> list[str]:
...
def tic() -> None:
...
def toLower(str: str) -> str:
...
def toUpper(str: str) -> str:
...
def toc(print: bool = False) -> float:
...
def tocMS(print: bool = False) -> float:
...
def tocNS(print: bool = False) -> float:
...
def tocS(print: bool = False) -> float:
...
def tocUS(print: bool = False) -> float:
...
def trace(arg0: str) -> None:
...
def trim(str: str, whitespaces: str = ' \n\r\t') -> str:
...
def trimLeft(str: str, whitespaces: str = ' \n\r\t') -> str:
...
def trimRight(str: str, whitespaces: str = ' \n\r\t') -> str:
...
def warn(arg0: str) -> None:
...