ZhengyangZhang commited on
Commit
a51beae
·
verified ·
1 Parent(s): b84d06c

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3.9/graphlib.pyi +16 -0
  2. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3.9/zoneinfo/__init__.pyi +32 -0
  3. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_ast.pyi +376 -0
  4. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_compat_pickle.pyi +10 -0
  5. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_compression.pyi +23 -0
  6. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_dummy_thread.pyi +21 -0
  7. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_imp.pyi +17 -0
  8. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_importlib_modulespec.pyi +50 -0
  9. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_json.pyi +38 -0
  10. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_markupbase.pyi +8 -0
  11. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_operator.pyi +60 -0
  12. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_osx_support.pyi +33 -0
  13. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_posixsubprocess.pyi +24 -0
  14. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_pydecimal.pyi +3 -0
  15. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_sitebuiltins.pyi +16 -0
  16. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_stat.pyi +65 -0
  17. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_thread.pyi +41 -0
  18. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_threading_local.pyi +16 -0
  19. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_tkinter.pyi +93 -0
  20. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_winapi.pyi +134 -0
  21. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/abc.pyi +20 -0
  22. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/ast.pyi +207 -0
  23. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/atexit.pyi +7 -0
  24. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/compileall.pyi +108 -0
  25. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/copyreg.pyi +16 -0
  26. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/enum.pyi +73 -0
  27. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/faulthandler.pyi +13 -0
  28. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/fcntl.pyi +99 -0
  29. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/gc.pyi +40 -0
  30. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/getpass.pyi +6 -0
  31. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/gettext.pyi +80 -0
  32. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/glob.pyi +8 -0
  33. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/gzip.pyi +94 -0
  34. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/hashlib.pyi +123 -0
  35. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/heapq.pyi +14 -0
  36. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/imp.pyi +64 -0
  37. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/inspect.pyi +309 -0
  38. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/io.pyi +186 -0
  39. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/lzma.pyi +164 -0
  40. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/macurl2path.pyi +7 -0
  41. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/ntpath.pyi +144 -0
  42. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/nturl2path.pyi +2 -0
  43. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/pathlib.pyi +178 -0
  44. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/pipes.pyi +15 -0
  45. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/platform.pyi +66 -0
  46. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/posix.pyi +165 -0
  47. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/queue.pyi +52 -0
  48. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/reprlib.pyi +36 -0
  49. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/resource.pyi +55 -0
  50. lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/runpy.pyi +22 -0
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3.9/graphlib.pyi ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from _typeshed import SupportsItems
2
+ from typing import Generic, Iterable, Optional, Tuple, TypeVar
3
+
4
+ _T = TypeVar("_T")
5
+
6
+ class TopologicalSorter(Generic[_T]):
7
+ def __init__(self, graph: Optional[SupportsItems[_T, Iterable[_T]]] = ...) -> None: ...
8
+ def add(self, node: _T, *predecessors: _T) -> None: ...
9
+ def prepare(self) -> None: ...
10
+ def is_active(self) -> bool: ...
11
+ def __bool__(self) -> bool: ...
12
+ def done(self, *nodes: _T) -> None: ...
13
+ def get_ready(self) -> Tuple[_T, ...]: ...
14
+ def static_order(self) -> Iterable[_T]: ...
15
+
16
+ class CycleError(ValueError): ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3.9/zoneinfo/__init__.pyi ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import typing
3
+ from datetime import tzinfo
4
+ from typing import Any, AnyStr, Iterable, Optional, Protocol, Sequence, Set, Type, Union
5
+
6
+ _T = typing.TypeVar("_T", bound="ZoneInfo")
7
+
8
+ class _IOBytes(Protocol):
9
+ def read(self, __size: int) -> bytes: ...
10
+ def seek(self, __size: int, __whence: int = ...) -> Any: ...
11
+
12
+ class ZoneInfo(tzinfo):
13
+ @property
14
+ def key(self) -> str: ...
15
+ def __init__(self, key: str) -> None: ...
16
+ @classmethod
17
+ def no_cache(cls: Type[_T], key: str) -> _T: ...
18
+ @classmethod
19
+ def from_file(cls: Type[_T], __fobj: _IOBytes, key: Optional[str] = ...) -> _T: ...
20
+ @classmethod
21
+ def clear_cache(cls, *, only_keys: Iterable[str] = ...) -> None: ...
22
+
23
+ # Note: Both here and in clear_cache, the types allow the use of `str` where
24
+ # a sequence of strings is required. This should be remedied if a solution
25
+ # to this typing bug is found: https://github.com/python/typing/issues/256
26
+ def reset_tzpath(to: Optional[Sequence[Union[os.PathLike[AnyStr], str]]] = ...) -> None: ...
27
+ def available_timezones() -> Set[str]: ...
28
+
29
+ TZPATH: Sequence[str]
30
+
31
+ class ZoneInfoNotFoundError(KeyError): ...
32
+ class InvalidTZPathWarning(RuntimeWarning): ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_ast.pyi ADDED
@@ -0,0 +1,376 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ import typing
3
+ from typing import Any, ClassVar, Optional
4
+
5
+ PyCF_ONLY_AST: int
6
+ if sys.version_info >= (3, 8):
7
+ PyCF_TYPE_COMMENTS: int
8
+ PyCF_ALLOW_TOP_LEVEL_AWAIT: int
9
+
10
+ _identifier = str
11
+
12
+ class AST:
13
+ _attributes: ClassVar[typing.Tuple[str, ...]]
14
+ _fields: ClassVar[typing.Tuple[str, ...]]
15
+ def __init__(self, *args: Any, **kwargs: Any) -> None: ...
16
+ # TODO: Not all nodes have all of the following attributes
17
+ lineno: int
18
+ col_offset: int
19
+ if sys.version_info >= (3, 8):
20
+ end_lineno: Optional[int]
21
+ end_col_offset: Optional[int]
22
+ type_comment: Optional[str]
23
+
24
+ class mod(AST): ...
25
+
26
+ if sys.version_info >= (3, 8):
27
+ class type_ignore(AST): ...
28
+ class TypeIgnore(type_ignore): ...
29
+ class FunctionType(mod):
30
+ argtypes: typing.List[expr]
31
+ returns: expr
32
+
33
+ class Module(mod):
34
+ body: typing.List[stmt]
35
+ if sys.version_info >= (3, 8):
36
+ type_ignores: typing.List[TypeIgnore]
37
+
38
+ class Interactive(mod):
39
+ body: typing.List[stmt]
40
+
41
+ class Expression(mod):
42
+ body: expr
43
+
44
+ class stmt(AST): ...
45
+
46
+ class FunctionDef(stmt):
47
+ name: _identifier
48
+ args: arguments
49
+ body: typing.List[stmt]
50
+ decorator_list: typing.List[expr]
51
+ returns: Optional[expr]
52
+
53
+ class AsyncFunctionDef(stmt):
54
+ name: _identifier
55
+ args: arguments
56
+ body: typing.List[stmt]
57
+ decorator_list: typing.List[expr]
58
+ returns: Optional[expr]
59
+
60
+ class ClassDef(stmt):
61
+ name: _identifier
62
+ bases: typing.List[expr]
63
+ keywords: typing.List[keyword]
64
+ body: typing.List[stmt]
65
+ decorator_list: typing.List[expr]
66
+
67
+ class Return(stmt):
68
+ value: Optional[expr]
69
+
70
+ class Delete(stmt):
71
+ targets: typing.List[expr]
72
+
73
+ class Assign(stmt):
74
+ targets: typing.List[expr]
75
+ value: expr
76
+
77
+ class AugAssign(stmt):
78
+ target: expr
79
+ op: operator
80
+ value: expr
81
+
82
+ class AnnAssign(stmt):
83
+ target: expr
84
+ annotation: expr
85
+ value: Optional[expr]
86
+ simple: int
87
+
88
+ class For(stmt):
89
+ target: expr
90
+ iter: expr
91
+ body: typing.List[stmt]
92
+ orelse: typing.List[stmt]
93
+
94
+ class AsyncFor(stmt):
95
+ target: expr
96
+ iter: expr
97
+ body: typing.List[stmt]
98
+ orelse: typing.List[stmt]
99
+
100
+ class While(stmt):
101
+ test: expr
102
+ body: typing.List[stmt]
103
+ orelse: typing.List[stmt]
104
+
105
+ class If(stmt):
106
+ test: expr
107
+ body: typing.List[stmt]
108
+ orelse: typing.List[stmt]
109
+
110
+ class With(stmt):
111
+ items: typing.List[withitem]
112
+ body: typing.List[stmt]
113
+
114
+ class AsyncWith(stmt):
115
+ items: typing.List[withitem]
116
+ body: typing.List[stmt]
117
+
118
+ class Raise(stmt):
119
+ exc: Optional[expr]
120
+ cause: Optional[expr]
121
+
122
+ class Try(stmt):
123
+ body: typing.List[stmt]
124
+ handlers: typing.List[ExceptHandler]
125
+ orelse: typing.List[stmt]
126
+ finalbody: typing.List[stmt]
127
+
128
+ class Assert(stmt):
129
+ test: expr
130
+ msg: Optional[expr]
131
+
132
+ class Import(stmt):
133
+ names: typing.List[alias]
134
+
135
+ class ImportFrom(stmt):
136
+ module: Optional[_identifier]
137
+ names: typing.List[alias]
138
+ level: int
139
+
140
+ class Global(stmt):
141
+ names: typing.List[_identifier]
142
+
143
+ class Nonlocal(stmt):
144
+ names: typing.List[_identifier]
145
+
146
+ class Expr(stmt):
147
+ value: expr
148
+
149
+ class Pass(stmt): ...
150
+ class Break(stmt): ...
151
+ class Continue(stmt): ...
152
+ class expr(AST): ...
153
+
154
+ class BoolOp(expr):
155
+ op: boolop
156
+ values: typing.List[expr]
157
+
158
+ class BinOp(expr):
159
+ left: expr
160
+ op: operator
161
+ right: expr
162
+
163
+ class UnaryOp(expr):
164
+ op: unaryop
165
+ operand: expr
166
+
167
+ class Lambda(expr):
168
+ args: arguments
169
+ body: expr
170
+
171
+ class IfExp(expr):
172
+ test: expr
173
+ body: expr
174
+ orelse: expr
175
+
176
+ class Dict(expr):
177
+ keys: typing.List[Optional[expr]]
178
+ values: typing.List[expr]
179
+
180
+ class Set(expr):
181
+ elts: typing.List[expr]
182
+
183
+ class ListComp(expr):
184
+ elt: expr
185
+ generators: typing.List[comprehension]
186
+
187
+ class SetComp(expr):
188
+ elt: expr
189
+ generators: typing.List[comprehension]
190
+
191
+ class DictComp(expr):
192
+ key: expr
193
+ value: expr
194
+ generators: typing.List[comprehension]
195
+
196
+ class GeneratorExp(expr):
197
+ elt: expr
198
+ generators: typing.List[comprehension]
199
+
200
+ class Await(expr):
201
+ value: expr
202
+
203
+ class Yield(expr):
204
+ value: Optional[expr]
205
+
206
+ class YieldFrom(expr):
207
+ value: expr
208
+
209
+ class Compare(expr):
210
+ left: expr
211
+ ops: typing.List[cmpop]
212
+ comparators: typing.List[expr]
213
+
214
+ class Call(expr):
215
+ func: expr
216
+ args: typing.List[expr]
217
+ keywords: typing.List[keyword]
218
+
219
+ class FormattedValue(expr):
220
+ value: expr
221
+ conversion: Optional[int]
222
+ format_spec: Optional[expr]
223
+
224
+ class JoinedStr(expr):
225
+ values: typing.List[expr]
226
+
227
+ if sys.version_info < (3, 8):
228
+ class Num(expr): # Deprecated in 3.8; use Constant
229
+ n: complex
230
+ class Str(expr): # Deprecated in 3.8; use Constant
231
+ s: str
232
+ class Bytes(expr): # Deprecated in 3.8; use Constant
233
+ s: bytes
234
+ class NameConstant(expr): # Deprecated in 3.8; use Constant
235
+ value: Any
236
+ class Ellipsis(expr): ... # Deprecated in 3.8; use Constant
237
+
238
+ class Constant(expr):
239
+ value: Any # None, str, bytes, bool, int, float, complex, Ellipsis
240
+ kind: Optional[str]
241
+ # Aliases for value, for backwards compatibility
242
+ s: Any
243
+ n: complex
244
+
245
+ if sys.version_info >= (3, 8):
246
+ class NamedExpr(expr):
247
+ target: expr
248
+ value: expr
249
+
250
+ class Attribute(expr):
251
+ value: expr
252
+ attr: _identifier
253
+ ctx: expr_context
254
+
255
+ if sys.version_info >= (3, 9):
256
+ _SliceT = expr
257
+ else:
258
+ class slice(AST): ...
259
+ _SliceT = slice
260
+
261
+ class Slice(_SliceT):
262
+ lower: Optional[expr]
263
+ upper: Optional[expr]
264
+ step: Optional[expr]
265
+
266
+ if sys.version_info < (3, 9):
267
+ class ExtSlice(slice):
268
+ dims: typing.List[slice]
269
+ class Index(slice):
270
+ value: expr
271
+
272
+ class Subscript(expr):
273
+ value: expr
274
+ slice: _SliceT
275
+ ctx: expr_context
276
+
277
+ class Starred(expr):
278
+ value: expr
279
+ ctx: expr_context
280
+
281
+ class Name(expr):
282
+ id: _identifier
283
+ ctx: expr_context
284
+
285
+ class List(expr):
286
+ elts: typing.List[expr]
287
+ ctx: expr_context
288
+
289
+ class Tuple(expr):
290
+ elts: typing.List[expr]
291
+ ctx: expr_context
292
+
293
+ class expr_context(AST): ...
294
+
295
+ if sys.version_info < (3, 9):
296
+ class AugLoad(expr_context): ...
297
+ class AugStore(expr_context): ...
298
+ class Param(expr_context): ...
299
+ class Suite(mod):
300
+ body: typing.List[stmt]
301
+
302
+ class Del(expr_context): ...
303
+ class Load(expr_context): ...
304
+ class Store(expr_context): ...
305
+ class boolop(AST): ...
306
+ class And(boolop): ...
307
+ class Or(boolop): ...
308
+ class operator(AST): ...
309
+ class Add(operator): ...
310
+ class BitAnd(operator): ...
311
+ class BitOr(operator): ...
312
+ class BitXor(operator): ...
313
+ class Div(operator): ...
314
+ class FloorDiv(operator): ...
315
+ class LShift(operator): ...
316
+ class Mod(operator): ...
317
+ class Mult(operator): ...
318
+ class MatMult(operator): ...
319
+ class Pow(operator): ...
320
+ class RShift(operator): ...
321
+ class Sub(operator): ...
322
+ class unaryop(AST): ...
323
+ class Invert(unaryop): ...
324
+ class Not(unaryop): ...
325
+ class UAdd(unaryop): ...
326
+ class USub(unaryop): ...
327
+ class cmpop(AST): ...
328
+ class Eq(cmpop): ...
329
+ class Gt(cmpop): ...
330
+ class GtE(cmpop): ...
331
+ class In(cmpop): ...
332
+ class Is(cmpop): ...
333
+ class IsNot(cmpop): ...
334
+ class Lt(cmpop): ...
335
+ class LtE(cmpop): ...
336
+ class NotEq(cmpop): ...
337
+ class NotIn(cmpop): ...
338
+
339
+ class comprehension(AST):
340
+ target: expr
341
+ iter: expr
342
+ ifs: typing.List[expr]
343
+ is_async: int
344
+
345
+ class excepthandler(AST): ...
346
+
347
+ class ExceptHandler(excepthandler):
348
+ type: Optional[expr]
349
+ name: Optional[_identifier]
350
+ body: typing.List[stmt]
351
+
352
+ class arguments(AST):
353
+ if sys.version_info >= (3, 8):
354
+ posonlyargs: typing.List[arg]
355
+ args: typing.List[arg]
356
+ vararg: Optional[arg]
357
+ kwonlyargs: typing.List[arg]
358
+ kw_defaults: typing.List[Optional[expr]]
359
+ kwarg: Optional[arg]
360
+ defaults: typing.List[expr]
361
+
362
+ class arg(AST):
363
+ arg: _identifier
364
+ annotation: Optional[expr]
365
+
366
+ class keyword(AST):
367
+ arg: Optional[_identifier]
368
+ value: expr
369
+
370
+ class alias(AST):
371
+ name: _identifier
372
+ asname: Optional[_identifier]
373
+
374
+ class withitem(AST):
375
+ context_expr: expr
376
+ optional_vars: Optional[expr]
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_compat_pickle.pyi ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Dict, Tuple
2
+
3
+ IMPORT_MAPPING: Dict[str, str]
4
+ NAME_MAPPING: Dict[Tuple[str, str], Tuple[str, str]]
5
+ PYTHON2_EXCEPTIONS: Tuple[str, ...]
6
+ MULTIPROCESSING_EXCEPTIONS: Tuple[str, ...]
7
+ REVERSE_IMPORT_MAPPING: Dict[str, str]
8
+ REVERSE_NAME_MAPPING: Dict[Tuple[str, str], Tuple[str, str]]
9
+ PYTHON3_OSERROR_EXCEPTIONS: Tuple[str, ...]
10
+ PYTHON3_IMPORTERROR_EXCEPTIONS: Tuple[str, ...]
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_compression.pyi ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from _typeshed import WriteableBuffer
2
+ from io import BufferedIOBase, RawIOBase
3
+ from typing import Any, Callable, Tuple, Type, Union
4
+
5
+ BUFFER_SIZE: Any
6
+
7
+ class BaseStream(BufferedIOBase): ...
8
+
9
+ class DecompressReader(RawIOBase):
10
+ def __init__(
11
+ self,
12
+ fp: RawIOBase,
13
+ decomp_factory: Callable[..., object],
14
+ trailing_error: Union[Type[Exception], Tuple[Type[Exception], ...]] = ...,
15
+ **decomp_args: Any,
16
+ ) -> None: ...
17
+ def readable(self) -> bool: ...
18
+ def close(self) -> None: ...
19
+ def seekable(self) -> bool: ...
20
+ def readinto(self, b: WriteableBuffer) -> int: ...
21
+ def read(self, size: int = ...) -> bytes: ...
22
+ def seek(self, offset: int, whence: int = ...) -> int: ...
23
+ def tell(self) -> int: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_dummy_thread.pyi ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, Callable, Dict, NoReturn, Optional, Tuple
2
+
3
+ TIMEOUT_MAX: int
4
+ error = RuntimeError
5
+
6
+ def start_new_thread(function: Callable[..., Any], args: Tuple[Any, ...], kwargs: Dict[str, Any] = ...) -> None: ...
7
+ def exit() -> NoReturn: ...
8
+ def get_ident() -> int: ...
9
+ def allocate_lock() -> LockType: ...
10
+ def stack_size(size: Optional[int] = ...) -> int: ...
11
+
12
+ class LockType(object):
13
+ locked_status: bool
14
+ def __init__(self) -> None: ...
15
+ def acquire(self, waitflag: Optional[bool] = ..., timeout: int = ...) -> bool: ...
16
+ def __enter__(self, waitflag: Optional[bool] = ..., timeout: int = ...) -> bool: ...
17
+ def __exit__(self, typ: Any, val: Any, tb: Any) -> None: ...
18
+ def release(self) -> bool: ...
19
+ def locked(self) -> bool: ...
20
+
21
+ def interrupt_main() -> None: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_imp.pyi ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import types
2
+ from importlib.machinery import ModuleSpec
3
+ from typing import Any, List
4
+
5
+ def create_builtin(__spec: ModuleSpec) -> types.ModuleType: ...
6
+ def create_dynamic(__spec: ModuleSpec, __file: Any = ...) -> None: ...
7
+ def acquire_lock() -> None: ...
8
+ def exec_builtin(__mod: types.ModuleType) -> int: ...
9
+ def exec_dynamic(__mod: types.ModuleType) -> int: ...
10
+ def extension_suffixes() -> List[str]: ...
11
+ def get_frozen_object(__name: str) -> types.CodeType: ...
12
+ def init_frozen(__name: str) -> types.ModuleType: ...
13
+ def is_builtin(__name: str) -> int: ...
14
+ def is_frozen(__name: str) -> bool: ...
15
+ def is_frozen_package(__name: str) -> bool: ...
16
+ def lock_held() -> bool: ...
17
+ def release_lock() -> None: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_importlib_modulespec.pyi ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ModuleSpec, ModuleType, Loader are part of a dependency cycle.
2
+ # They are officially defined/exported in other places:
3
+ #
4
+ # - ModuleType in types
5
+ # - Loader in importlib.abc
6
+ # - ModuleSpec in importlib.machinery (3.4 and later only)
7
+ #
8
+ # _Loader is the PEP-451-defined interface for a loader type/object.
9
+
10
+ from abc import ABCMeta
11
+ from typing import Any, Dict, List, Optional, Protocol
12
+
13
+ class _Loader(Protocol):
14
+ def load_module(self, fullname: str) -> ModuleType: ...
15
+
16
+ class ModuleSpec:
17
+ def __init__(
18
+ self,
19
+ name: str,
20
+ loader: Optional[Loader],
21
+ *,
22
+ origin: Optional[str] = ...,
23
+ loader_state: Any = ...,
24
+ is_package: Optional[bool] = ...,
25
+ ) -> None: ...
26
+ name: str
27
+ loader: Optional[_Loader]
28
+ origin: Optional[str]
29
+ submodule_search_locations: Optional[List[str]]
30
+ loader_state: Any
31
+ cached: Optional[str]
32
+ parent: Optional[str]
33
+ has_location: bool
34
+
35
+ class ModuleType:
36
+ __name__: str
37
+ __file__: str
38
+ __dict__: Dict[str, Any]
39
+ __loader__: Optional[_Loader]
40
+ __package__: Optional[str]
41
+ __spec__: Optional[ModuleSpec]
42
+ def __init__(self, name: str, doc: Optional[str] = ...) -> None: ...
43
+
44
+ class Loader(metaclass=ABCMeta):
45
+ def load_module(self, fullname: str) -> ModuleType: ...
46
+ def module_repr(self, module: ModuleType) -> str: ...
47
+ def create_module(self, spec: ModuleSpec) -> Optional[ModuleType]: ...
48
+ # Not defined on the actual class for backwards-compatibility reasons,
49
+ # but expected in new code.
50
+ def exec_module(self, module: ModuleType) -> None: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_json.pyi ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, Callable, Dict, Optional, Tuple
2
+
3
+ class make_encoder:
4
+ sort_keys: Any
5
+ skipkeys: Any
6
+ key_separator: Any
7
+ indent: Any
8
+ markers: Any
9
+ default: Any
10
+ encoder: Any
11
+ item_separator: Any
12
+ def __init__(
13
+ self,
14
+ markers: Optional[Dict[int, Any]],
15
+ default: Callable[[Any], Any],
16
+ encoder: Callable[[str], str],
17
+ indent: Optional[int],
18
+ key_separator: str,
19
+ item_separator: str,
20
+ sort_keys: bool,
21
+ skipkeys: bool,
22
+ allow_nan: bool,
23
+ ) -> None: ...
24
+ def __call__(self, obj: object, _current_indent_level: int) -> Any: ...
25
+
26
+ class make_scanner:
27
+ object_hook: Any
28
+ object_pairs_hook: Any
29
+ parse_int: Any
30
+ parse_constant: Any
31
+ parse_float: Any
32
+ strict: bool
33
+ # TODO: 'context' needs the attrs above (ducktype), but not __call__.
34
+ def __init__(self, context: make_scanner) -> None: ...
35
+ def __call__(self, string: str, index: int) -> Tuple[Any, int]: ...
36
+
37
+ def encode_basestring_ascii(s: str) -> str: ...
38
+ def scanstring(string: str, end: int, strict: bool = ...) -> Tuple[str, int]: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_markupbase.pyi ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ from typing import Tuple
2
+
3
+ class ParserBase:
4
+ def __init__(self) -> None: ...
5
+ def error(self, message: str) -> None: ...
6
+ def reset(self) -> None: ...
7
+ def getpos(self) -> Tuple[int, int]: ...
8
+ def unknown_decl(self, data: str) -> None: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_operator.pyi ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # In reality the import is the other way around, but this way we can keep the operator stub in 2and3
2
+ from operator import (
3
+ abs as abs,
4
+ add as add,
5
+ and_ as and_,
6
+ attrgetter as attrgetter,
7
+ concat as concat,
8
+ contains as contains,
9
+ countOf as countOf,
10
+ delitem as delitem,
11
+ eq as eq,
12
+ floordiv as floordiv,
13
+ ge as ge,
14
+ getitem as getitem,
15
+ gt as gt,
16
+ iadd as iadd,
17
+ iand as iand,
18
+ iconcat as iconcat,
19
+ ifloordiv as ifloordiv,
20
+ ilshift as ilshift,
21
+ imatmul as imatmul,
22
+ imod as imod,
23
+ imul as imul,
24
+ index as index,
25
+ indexOf as indexOf,
26
+ inv as inv,
27
+ invert as invert,
28
+ ior as ior,
29
+ ipow as ipow,
30
+ irshift as irshift,
31
+ is_ as is_,
32
+ is_not as is_not,
33
+ isub as isub,
34
+ itemgetter as itemgetter,
35
+ itruediv as itruediv,
36
+ ixor as ixor,
37
+ le as le,
38
+ length_hint as length_hint,
39
+ lshift as lshift,
40
+ lt as lt,
41
+ matmul as matmul,
42
+ methodcaller as methodcaller,
43
+ mod as mod,
44
+ mul as mul,
45
+ ne as ne,
46
+ neg as neg,
47
+ not_ as not_,
48
+ or_ as or_,
49
+ pos as pos,
50
+ pow as pow,
51
+ rshift as rshift,
52
+ setitem as setitem,
53
+ sub as sub,
54
+ truediv as truediv,
55
+ truth as truth,
56
+ xor as xor,
57
+ )
58
+ from typing import AnyStr
59
+
60
+ def _compare_digest(__a: AnyStr, __b: AnyStr) -> bool: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_osx_support.pyi ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Dict, Iterable, List, Optional, Sequence, Tuple, TypeVar, Union
2
+
3
+ _T = TypeVar("_T")
4
+ _K = TypeVar("_K")
5
+ _V = TypeVar("_V")
6
+
7
+ __all__: List[str]
8
+
9
+ _UNIVERSAL_CONFIG_VARS: Tuple[str, ...] # undocumented
10
+ _COMPILER_CONFIG_VARS: Tuple[str, ...] # undocumented
11
+ _INITPRE: str # undocumented
12
+
13
+ def _find_executable(executable: str, path: Optional[str] = ...) -> Optional[str]: ... # undocumented
14
+ def _read_output(commandstring: str) -> Optional[str]: ... # undocumented
15
+ def _find_build_tool(toolname: str) -> str: ... # undocumented
16
+
17
+ _SYSTEM_VERSION: Optional[str] # undocumented
18
+
19
+ def _get_system_version() -> str: ... # undocumented
20
+ def _remove_original_values(_config_vars: Dict[str, str]) -> None: ... # undocumented
21
+ def _save_modified_value(_config_vars: Dict[str, str], cv: str, newvalue: str) -> None: ... # undocumented
22
+ def _supports_universal_builds() -> bool: ... # undocumented
23
+ def _find_appropriate_compiler(_config_vars: Dict[str, str]) -> Dict[str, str]: ... # undocumented
24
+ def _remove_universal_flags(_config_vars: Dict[str, str]) -> Dict[str, str]: ... # undocumented
25
+ def _remove_unsupported_archs(_config_vars: Dict[str, str]) -> Dict[str, str]: ... # undocumented
26
+ def _override_all_archs(_config_vars: Dict[str, str]) -> Dict[str, str]: ... # undocumented
27
+ def _check_for_unavailable_sdk(_config_vars: Dict[str, str]) -> Dict[str, str]: ... # undocumented
28
+ def compiler_fixup(compiler_so: Iterable[str], cc_args: Sequence[str]) -> List[str]: ...
29
+ def customize_config_vars(_config_vars: Dict[str, str]) -> Dict[str, str]: ...
30
+ def customize_compiler(_config_vars: Dict[str, str]) -> Dict[str, str]: ...
31
+ def get_platform_osx(
32
+ _config_vars: Dict[str, str], osname: _T, release: _K, machine: _V
33
+ ) -> Tuple[Union[str, _T], Union[str, _K], Union[str, _V]]: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_posixsubprocess.pyi ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NOTE: These are incomplete!
2
+
3
+ from typing import Callable, Sequence, Tuple
4
+
5
+ def cloexec_pipe() -> Tuple[int, int]: ...
6
+ def fork_exec(
7
+ args: Sequence[str],
8
+ executable_list: Sequence[bytes],
9
+ close_fds: bool,
10
+ fds_to_keep: Sequence[int],
11
+ cwd: str,
12
+ env_list: Sequence[bytes],
13
+ p2cread: int,
14
+ p2cwrite: int,
15
+ c2pred: int,
16
+ c2pwrite: int,
17
+ errread: int,
18
+ errwrite: int,
19
+ errpipe_read: int,
20
+ errpipe_write: int,
21
+ restore_signals: int,
22
+ start_new_session: int,
23
+ preexec_fn: Callable[[], None],
24
+ ) -> int: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_pydecimal.pyi ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # This is a slight lie, the implementations aren't exactly identical
2
+ # However, in all likelihood, the differences are inconsequential
3
+ from decimal import *
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_sitebuiltins.pyi ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import ClassVar, Iterable, NoReturn, Optional
2
+ from typing_extensions import Literal
3
+
4
+ class Quitter:
5
+ name: str
6
+ eof: str
7
+ def __init__(self, name: str, eof: str) -> None: ...
8
+ def __call__(self, code: Optional[int] = ...) -> NoReturn: ...
9
+
10
+ class _Printer:
11
+ MAXLINES: ClassVar[Literal[23]]
12
+ def __init__(self, name: str, data: str, files: Iterable[str] = ..., dirs: Iterable[str] = ...) -> None: ...
13
+ def __call__(self) -> None: ...
14
+
15
+ class _Helper:
16
+ def __call__(self, request: object) -> None: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_stat.pyi ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ SF_APPEND: int
2
+ SF_ARCHIVED: int
3
+ SF_IMMUTABLE: int
4
+ SF_NOUNLINK: int
5
+ SF_SNAPSHOT: int
6
+ ST_ATIME: int
7
+ ST_CTIME: int
8
+ ST_DEV: int
9
+ ST_GID: int
10
+ ST_INO: int
11
+ ST_MODE: int
12
+ ST_MTIME: int
13
+ ST_NLINK: int
14
+ ST_SIZE: int
15
+ ST_UID: int
16
+ S_ENFMT: int
17
+ S_IEXEC: int
18
+ S_IFBLK: int
19
+ S_IFCHR: int
20
+ S_IFDIR: int
21
+ S_IFDOOR: int
22
+ S_IFIFO: int
23
+ S_IFLNK: int
24
+ S_IFPORT: int
25
+ S_IFREG: int
26
+ S_IFSOCK: int
27
+ S_IFWHT: int
28
+ S_IREAD: int
29
+ S_IRGRP: int
30
+ S_IROTH: int
31
+ S_IRUSR: int
32
+ S_IRWXG: int
33
+ S_IRWXO: int
34
+ S_IRWXU: int
35
+ S_ISGID: int
36
+ S_ISUID: int
37
+ S_ISVTX: int
38
+ S_IWGRP: int
39
+ S_IWOTH: int
40
+ S_IWRITE: int
41
+ S_IWUSR: int
42
+ S_IXGRP: int
43
+ S_IXOTH: int
44
+ S_IXUSR: int
45
+ UF_APPEND: int
46
+ UF_COMPRESSED: int
47
+ UF_HIDDEN: int
48
+ UF_IMMUTABLE: int
49
+ UF_NODUMP: int
50
+ UF_NOUNLINK: int
51
+ UF_OPAQUE: int
52
+
53
+ def S_IMODE(mode: int) -> int: ...
54
+ def S_IFMT(mode: int) -> int: ...
55
+ def S_ISBLK(mode: int) -> bool: ...
56
+ def S_ISCHR(mode: int) -> bool: ...
57
+ def S_ISDIR(mode: int) -> bool: ...
58
+ def S_ISDOOR(mode: int) -> bool: ...
59
+ def S_ISFIFO(mode: int) -> bool: ...
60
+ def S_ISLNK(mode: int) -> bool: ...
61
+ def S_ISPORT(mode: int) -> bool: ...
62
+ def S_ISREG(mode: int) -> bool: ...
63
+ def S_ISSOCK(mode: int) -> bool: ...
64
+ def S_ISWHT(mode: int) -> bool: ...
65
+ def filemode(mode: int) -> str: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_thread.pyi ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from threading import Thread
3
+ from types import TracebackType
4
+ from typing import Any, Callable, Dict, NoReturn, Optional, Tuple, Type
5
+
6
+ error = RuntimeError
7
+
8
+ def _count() -> int: ...
9
+
10
+ _dangling: Any
11
+
12
+ class LockType:
13
+ def acquire(self, blocking: bool = ..., timeout: float = ...) -> bool: ...
14
+ def release(self) -> None: ...
15
+ def locked(self) -> bool: ...
16
+ def __enter__(self) -> bool: ...
17
+ def __exit__(
18
+ self, type: Optional[Type[BaseException]], value: Optional[BaseException], traceback: Optional[TracebackType]
19
+ ) -> None: ...
20
+
21
+ def start_new_thread(function: Callable[..., Any], args: Tuple[Any, ...], kwargs: Dict[str, Any] = ...) -> int: ...
22
+ def interrupt_main() -> None: ...
23
+ def exit() -> NoReturn: ...
24
+ def allocate_lock() -> LockType: ...
25
+ def get_ident() -> int: ...
26
+ def stack_size(size: int = ...) -> int: ...
27
+
28
+ TIMEOUT_MAX: float
29
+
30
+ if sys.version_info >= (3, 8):
31
+ def get_native_id() -> int: ... # only available on some platforms
32
+ class _ExceptHookArgs(Tuple[Type[BaseException], Optional[BaseException], Optional[TracebackType], Optional[Thread]]):
33
+ @property
34
+ def exc_type(self) -> Type[BaseException]: ...
35
+ @property
36
+ def exc_value(self) -> Optional[BaseException]: ...
37
+ @property
38
+ def exc_traceback(self) -> Optional[TracebackType]: ...
39
+ @property
40
+ def thread(self) -> Optional[Thread]: ...
41
+ _excepthook: Callable[[_ExceptHookArgs], Any]
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_threading_local.pyi ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, Dict, Tuple
2
+ from weakref import ReferenceType
3
+
4
+ localdict = Dict[Any, Any]
5
+
6
+ class _localimpl:
7
+ key: str
8
+ dicts: Dict[int, Tuple[ReferenceType[Any], localdict]]
9
+ def __init__(self) -> None: ...
10
+ def get_dict(self) -> localdict: ...
11
+ def create_dict(self) -> localdict: ...
12
+
13
+ class local:
14
+ def __getattribute__(self, name: str) -> Any: ...
15
+ def __setattr__(self, name: str, value: Any) -> None: ...
16
+ def __delattr__(self, name: str) -> None: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_tkinter.pyi ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, Tuple, Union
2
+
3
+ # _tkinter is meant to be only used internally by tkinter, but some tkinter
4
+ # functions e.g. return _tkinter.Tcl_Obj objects. Tcl_Obj represents a Tcl
5
+ # object that hasn't been converted to a string.
6
+ #
7
+ # There are not many ways to get Tcl_Objs from tkinter, and I'm not sure if the
8
+ # only existing ways are supposed to return Tcl_Objs as opposed to returning
9
+ # strings. Here's one of these things that return Tcl_Objs:
10
+ #
11
+ # >>> import tkinter
12
+ # >>> text = tkinter.Text()
13
+ # >>> text.tag_add('foo', '1.0', 'end')
14
+ # >>> text.tag_ranges('foo')
15
+ # (<textindex object: '1.0'>, <textindex object: '2.0'>)
16
+ class Tcl_Obj:
17
+ string: str # str(tclobj) returns this
18
+ typename: str
19
+
20
+ class TclError(Exception): ...
21
+
22
+ # This class allows running Tcl code. Tkinter uses it internally a lot, and
23
+ # it's often handy to drop a piece of Tcl code into a tkinter program. Example:
24
+ #
25
+ # >>> import tkinter, _tkinter
26
+ # >>> tkapp = tkinter.Tk().tk
27
+ # >>> isinstance(tkapp, _tkinter.TkappType)
28
+ # True
29
+ # >>> tkapp.call('set', 'foo', (1,2,3))
30
+ # (1, 2, 3)
31
+ # >>> tkapp.eval('return $foo')
32
+ # '1 2 3'
33
+ # >>>
34
+ #
35
+ # call args can be pretty much anything. Also, call(some_tuple) is same as call(*some_tuple).
36
+ #
37
+ # eval always returns str because _tkinter_tkapp_eval_impl in _tkinter.c calls
38
+ # Tkapp_UnicodeResult, and it returns a string when it succeeds.
39
+ class TkappType:
40
+ # Please keep in sync with tkinter.Tk
41
+ def call(self, __command: Union[str, Tuple[Any, ...]], *args: Any) -> Any: ...
42
+ def eval(self, __script: str) -> str: ...
43
+ adderrorinfo: Any
44
+ createcommand: Any
45
+ createfilehandler: Any
46
+ createtimerhandler: Any
47
+ deletecommand: Any
48
+ deletefilehandler: Any
49
+ dooneevent: Any
50
+ evalfile: Any
51
+ exprboolean: Any
52
+ exprdouble: Any
53
+ exprlong: Any
54
+ exprstring: Any
55
+ getboolean: Any
56
+ getdouble: Any
57
+ getint: Any
58
+ getvar: Any
59
+ globalgetvar: Any
60
+ globalsetvar: Any
61
+ globalunsetvar: Any
62
+ interpaddr: Any
63
+ loadtk: Any
64
+ mainloop: Any
65
+ quit: Any
66
+ record: Any
67
+ setvar: Any
68
+ split: Any
69
+ splitlist: Any
70
+ unsetvar: Any
71
+ wantobjects: Any
72
+ willdispatch: Any
73
+
74
+ ALL_EVENTS: int
75
+ FILE_EVENTS: int
76
+ IDLE_EVENTS: int
77
+ TIMER_EVENTS: int
78
+ WINDOW_EVENTS: int
79
+
80
+ DONT_WAIT: int
81
+ EXCEPTION: int
82
+ READABLE: int
83
+ WRITABLE: int
84
+
85
+ TCL_VERSION: str
86
+ TK_VERSION: str
87
+
88
+ # TODO: figure out what these are (with e.g. help()) and get rid of Any
89
+ TkttType: Any
90
+ _flatten: Any
91
+ create: Any
92
+ getbusywaitinterval: Any
93
+ setbusywaitinterval: Any
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/_winapi.pyi ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from typing import Any, Dict, NoReturn, Optional, Sequence, Tuple, Union, overload
3
+ from typing_extensions import Literal
4
+
5
+ CREATE_NEW_CONSOLE: int
6
+ CREATE_NEW_PROCESS_GROUP: int
7
+ DUPLICATE_CLOSE_SOURCE: int
8
+ DUPLICATE_SAME_ACCESS: int
9
+ ERROR_ALREADY_EXISTS: int
10
+ ERROR_BROKEN_PIPE: int
11
+ ERROR_IO_PENDING: int
12
+ ERROR_MORE_DATA: int
13
+ ERROR_NETNAME_DELETED: int
14
+ ERROR_NO_DATA: int
15
+ ERROR_NO_SYSTEM_RESOURCES: int
16
+ ERROR_OPERATION_ABORTED: int
17
+ ERROR_PIPE_BUSY: int
18
+ ERROR_PIPE_CONNECTED: int
19
+ ERROR_SEM_TIMEOUT: int
20
+ FILE_FLAG_FIRST_PIPE_INSTANCE: int
21
+ FILE_FLAG_OVERLAPPED: int
22
+ FILE_GENERIC_READ: int
23
+ FILE_GENERIC_WRITE: int
24
+ GENERIC_READ: int
25
+ GENERIC_WRITE: int
26
+ INFINITE: int
27
+ NMPWAIT_WAIT_FOREVER: int
28
+ NULL: int
29
+ OPEN_EXISTING: int
30
+ PIPE_ACCESS_DUPLEX: int
31
+ PIPE_ACCESS_INBOUND: int
32
+ PIPE_READMODE_MESSAGE: int
33
+ PIPE_TYPE_MESSAGE: int
34
+ PIPE_UNLIMITED_INSTANCES: int
35
+ PIPE_WAIT: int
36
+ PROCESS_ALL_ACCESS: int
37
+ PROCESS_DUP_HANDLE: int
38
+ STARTF_USESHOWWINDOW: int
39
+ STARTF_USESTDHANDLES: int
40
+ STD_ERROR_HANDLE: int
41
+ STD_INPUT_HANDLE: int
42
+ STD_OUTPUT_HANDLE: int
43
+ STILL_ACTIVE: int
44
+ SW_HIDE: int
45
+ WAIT_ABANDONED_0: int
46
+ WAIT_OBJECT_0: int
47
+ WAIT_TIMEOUT: int
48
+
49
+ def CloseHandle(__handle: int) -> None: ...
50
+ @overload
51
+ def ConnectNamedPipe(handle: int, overlapped: Literal[True]) -> Overlapped: ...
52
+ @overload
53
+ def ConnectNamedPipe(handle: int, overlapped: Literal[False] = ...) -> None: ...
54
+ @overload
55
+ def ConnectNamedPipe(handle: int, overlapped: bool) -> Optional[Overlapped]: ...
56
+ def CreateFile(
57
+ __file_name: str,
58
+ __desired_access: int,
59
+ __share_mode: int,
60
+ __security_attributes: int,
61
+ __creation_disposition: int,
62
+ __flags_and_attributes: int,
63
+ __template_file: int,
64
+ ) -> int: ...
65
+ def CreateJunction(__src_path: str, __dst_path: str) -> None: ...
66
+ def CreateNamedPipe(
67
+ __name: str,
68
+ __open_mode: int,
69
+ __pipe_mode: int,
70
+ __max_instances: int,
71
+ __out_buffer_size: int,
72
+ __in_buffer_size: int,
73
+ __default_timeout: int,
74
+ __security_attributes: int,
75
+ ) -> int: ...
76
+ def CreatePipe(__pipe_attrs: Any, __size: int) -> Tuple[int, int]: ...
77
+ def CreateProcess(
78
+ __application_name: Optional[str],
79
+ __command_line: Optional[str],
80
+ __proc_attrs: Any,
81
+ __thread_attrs: Any,
82
+ __inherit_handles: bool,
83
+ __creation_flags: int,
84
+ __env_mapping: Dict[str, str],
85
+ __current_directory: Optional[str],
86
+ __startup_info: Any,
87
+ ) -> Tuple[int, int, int, int]: ...
88
+ def DuplicateHandle(
89
+ __source_process_handle: int,
90
+ __source_handle: int,
91
+ __target_process_handle: int,
92
+ __desired_access: int,
93
+ __inherit_handle: bool,
94
+ __options: int = ...,
95
+ ) -> int: ...
96
+ def ExitProcess(__ExitCode: int) -> NoReturn: ...
97
+
98
+ if sys.version_info >= (3, 7):
99
+ def GetACP() -> int: ...
100
+ def GetFileType(handle: int) -> int: ...
101
+
102
+ def GetCurrentProcess() -> int: ...
103
+ def GetExitCodeProcess(__process: int) -> int: ...
104
+ def GetLastError() -> int: ...
105
+ def GetModuleFileName(__module_handle: int) -> str: ...
106
+ def GetStdHandle(__std_handle: int) -> int: ...
107
+ def GetVersion() -> int: ...
108
+ def OpenProcess(__desired_access: int, __inherit_handle: bool, __process_id: int) -> int: ...
109
+ def PeekNamedPipe(__handle: int, __size: int = ...) -> Union[Tuple[int, int], Tuple[bytes, int, int]]: ...
110
+ @overload
111
+ def ReadFile(handle: int, size: int, overlapped: Literal[True]) -> Tuple[Overlapped, int]: ...
112
+ @overload
113
+ def ReadFile(handle: int, size: int, overlapped: Literal[False] = ...) -> Tuple[bytes, int]: ...
114
+ @overload
115
+ def ReadFile(handle: int, size: int, overlapped: Union[int, bool]) -> Tuple[Any, int]: ...
116
+ def SetNamedPipeHandleState(
117
+ __named_pipe: int, __mode: Optional[int], __max_collection_count: Optional[int], __collect_data_timeout: Optional[int]
118
+ ) -> None: ...
119
+ def TerminateProcess(__handle: int, __exit_code: int) -> None: ...
120
+ def WaitForMultipleObjects(__handle_seq: Sequence[int], __wait_flag: bool, __milliseconds: int = ...) -> int: ...
121
+ def WaitForSingleObject(__handle: int, __milliseconds: int) -> int: ...
122
+ def WaitNamedPipe(__name: str, __timeout: int) -> None: ...
123
+ @overload
124
+ def WriteFile(handle: int, buffer: bytes, overlapped: Literal[True]) -> Tuple[Overlapped, int]: ...
125
+ @overload
126
+ def WriteFile(handle: int, buffer: bytes, overlapped: Literal[False] = ...) -> Tuple[int, int]: ...
127
+ @overload
128
+ def WriteFile(handle: int, buffer: bytes, overlapped: Union[int, bool]) -> Tuple[Any, int]: ...
129
+
130
+ class Overlapped:
131
+ event: int = ...
132
+ def GetOverlappedResult(self, __wait: bool) -> Tuple[int, int]: ...
133
+ def cancel(self) -> None: ...
134
+ def getbuffer(self) -> Optional[bytes]: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/abc.pyi ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, Callable, Type, TypeVar
2
+
3
+ _T = TypeVar("_T")
4
+ _FuncT = TypeVar("_FuncT", bound=Callable[..., Any])
5
+
6
+ # These definitions have special processing in mypy
7
+ class ABCMeta(type):
8
+ def register(cls: ABCMeta, subclass: Type[_T]) -> Type[_T]: ...
9
+
10
+ def abstractmethod(callable: _FuncT) -> _FuncT: ...
11
+
12
+ class abstractproperty(property): ...
13
+
14
+ # These two are deprecated and not supported by mypy
15
+ def abstractstaticmethod(callable: _FuncT) -> _FuncT: ...
16
+ def abstractclassmethod(callable: _FuncT) -> _FuncT: ...
17
+
18
+ class ABC(metaclass=ABCMeta): ...
19
+
20
+ def get_cache_token() -> object: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/ast.pyi ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Rename typing to _typing, as not to conflict with typing imported
2
+ # from _ast below when loaded in an unorthodox way by the Dropbox
3
+ # internal Bazel integration.
4
+
5
+ # The same unorthodox Bazel integration causes issues with sys, which
6
+ # is imported in both modules. unfortunately we can't just rename sys,
7
+ # since mypy only supports version checks with a sys that is named
8
+ # sys.
9
+ import sys
10
+ import typing as _typing
11
+ from typing import Any, Iterator, Optional, TypeVar, Union, overload
12
+ from typing_extensions import Literal
13
+
14
+ from _ast import * # type: ignore
15
+
16
+ if sys.version_info >= (3, 8):
17
+ class Num(Constant):
18
+ value: complex
19
+ class Str(Constant):
20
+ value: str
21
+ # Aliases for value, for backwards compatibility
22
+ s: str
23
+ class Bytes(Constant):
24
+ value: bytes
25
+ # Aliases for value, for backwards compatibility
26
+ s: bytes
27
+ class NameConstant(Constant): ...
28
+ class Ellipsis(Constant): ...
29
+
30
+ if sys.version_info >= (3, 9):
31
+ class slice(AST): ...
32
+ class ExtSlice(slice): ...
33
+ class Index(slice): ...
34
+ class Suite(mod): ...
35
+ class AugLoad(expr_context): ...
36
+ class AugStore(expr_context): ...
37
+ class Param(expr_context): ...
38
+
39
+ class NodeVisitor:
40
+ def visit(self, node: AST) -> Any: ...
41
+ def generic_visit(self, node: AST) -> Any: ...
42
+ def visit_Module(self, node: Module) -> Any: ...
43
+ def visit_Interactive(self, node: Interactive) -> Any: ...
44
+ def visit_Expression(self, node: Expression) -> Any: ...
45
+ def visit_FunctionDef(self, node: FunctionDef) -> Any: ...
46
+ def visit_AsyncFunctionDef(self, node: AsyncFunctionDef) -> Any: ...
47
+ def visit_ClassDef(self, node: ClassDef) -> Any: ...
48
+ def visit_Return(self, node: Return) -> Any: ...
49
+ def visit_Delete(self, node: Delete) -> Any: ...
50
+ def visit_Assign(self, node: Assign) -> Any: ...
51
+ def visit_AugAssign(self, node: AugAssign) -> Any: ...
52
+ def visit_AnnAssign(self, node: AnnAssign) -> Any: ...
53
+ def visit_For(self, node: For) -> Any: ...
54
+ def visit_AsyncFor(self, node: AsyncFor) -> Any: ...
55
+ def visit_While(self, node: While) -> Any: ...
56
+ def visit_If(self, node: If) -> Any: ...
57
+ def visit_With(self, node: With) -> Any: ...
58
+ def visit_AsyncWith(self, node: AsyncWith) -> Any: ...
59
+ def visit_Raise(self, node: Raise) -> Any: ...
60
+ def visit_Try(self, node: Try) -> Any: ...
61
+ def visit_Assert(self, node: Assert) -> Any: ...
62
+ def visit_Import(self, node: Import) -> Any: ...
63
+ def visit_ImportFrom(self, node: ImportFrom) -> Any: ...
64
+ def visit_Global(self, node: Global) -> Any: ...
65
+ def visit_Nonlocal(self, node: Nonlocal) -> Any: ...
66
+ def visit_Expr(self, node: Expr) -> Any: ...
67
+ def visit_Pass(self, node: Pass) -> Any: ...
68
+ def visit_Break(self, node: Break) -> Any: ...
69
+ def visit_Continue(self, node: Continue) -> Any: ...
70
+ def visit_Slice(self, node: Slice) -> Any: ...
71
+ def visit_BoolOp(self, node: BoolOp) -> Any: ...
72
+ def visit_BinOp(self, node: BinOp) -> Any: ...
73
+ def visit_UnaryOp(self, node: UnaryOp) -> Any: ...
74
+ def visit_Lambda(self, node: Lambda) -> Any: ...
75
+ def visit_IfExp(self, node: IfExp) -> Any: ...
76
+ def visit_Dict(self, node: Dict) -> Any: ...
77
+ def visit_Set(self, node: Set) -> Any: ...
78
+ def visit_ListComp(self, node: ListComp) -> Any: ...
79
+ def visit_SetComp(self, node: SetComp) -> Any: ...
80
+ def visit_DictComp(self, node: DictComp) -> Any: ...
81
+ def visit_GeneratorExp(self, node: GeneratorExp) -> Any: ...
82
+ def visit_Await(self, node: Await) -> Any: ...
83
+ def visit_Yield(self, node: Yield) -> Any: ...
84
+ def visit_YieldFrom(self, node: YieldFrom) -> Any: ...
85
+ def visit_Compare(self, node: Compare) -> Any: ...
86
+ def visit_Call(self, node: Call) -> Any: ...
87
+ def visit_FormattedValue(self, node: FormattedValue) -> Any: ...
88
+ def visit_JoinedStr(self, node: JoinedStr) -> Any: ...
89
+ def visit_Constant(self, node: Constant) -> Any: ...
90
+ if sys.version_info >= (3, 8):
91
+ def visit_NamedExpr(self, node: NamedExpr) -> Any: ...
92
+ def visit_Attribute(self, node: Attribute) -> Any: ...
93
+ def visit_Subscript(self, node: Subscript) -> Any: ...
94
+ def visit_Starred(self, node: Starred) -> Any: ...
95
+ def visit_Name(self, node: Name) -> Any: ...
96
+ def visit_List(self, node: List) -> Any: ...
97
+ def visit_Tuple(self, node: Tuple) -> Any: ...
98
+ def visit_Del(self, node: Del) -> Any: ...
99
+ def visit_Load(self, node: Load) -> Any: ...
100
+ def visit_Store(self, node: Store) -> Any: ...
101
+ def visit_And(self, node: And) -> Any: ...
102
+ def visit_Or(self, node: Or) -> Any: ...
103
+ def visit_Add(self, node: Add) -> Any: ...
104
+ def visit_BitAnd(self, node: BitAnd) -> Any: ...
105
+ def visit_BitOr(self, node: BitOr) -> Any: ...
106
+ def visit_BitXor(self, node: BitXor) -> Any: ...
107
+ def visit_Div(self, node: Div) -> Any: ...
108
+ def visit_FloorDiv(self, node: FloorDiv) -> Any: ...
109
+ def visit_LShift(self, node: LShift) -> Any: ...
110
+ def visit_Mod(self, node: Mod) -> Any: ...
111
+ def visit_Mult(self, node: Mult) -> Any: ...
112
+ def visit_MatMult(self, node: MatMult) -> Any: ...
113
+ def visit_Pow(self, node: Pow) -> Any: ...
114
+ def visit_RShift(self, node: RShift) -> Any: ...
115
+ def visit_Sub(self, node: Sub) -> Any: ...
116
+ def visit_Invert(self, node: Invert) -> Any: ...
117
+ def visit_Not(self, node: Not) -> Any: ...
118
+ def visit_UAdd(self, node: UAdd) -> Any: ...
119
+ def visit_USub(self, node: USub) -> Any: ...
120
+ def visit_Eq(self, node: Eq) -> Any: ...
121
+ def visit_Gt(self, node: Gt) -> Any: ...
122
+ def visit_GtE(self, node: GtE) -> Any: ...
123
+ def visit_In(self, node: In) -> Any: ...
124
+ def visit_Is(self, node: Is) -> Any: ...
125
+ def visit_IsNot(self, node: IsNot) -> Any: ...
126
+ def visit_Lt(self, node: Lt) -> Any: ...
127
+ def visit_LtE(self, node: LtE) -> Any: ...
128
+ def visit_NotEq(self, node: NotEq) -> Any: ...
129
+ def visit_NotIn(self, node: NotIn) -> Any: ...
130
+ def visit_comprehension(self, node: comprehension) -> Any: ...
131
+ def visit_ExceptHandler(self, node: ExceptHandler) -> Any: ...
132
+ def visit_arguments(self, node: arguments) -> Any: ...
133
+ def visit_arg(self, node: arg) -> Any: ...
134
+ def visit_keyword(self, node: keyword) -> Any: ...
135
+ def visit_alias(self, node: alias) -> Any: ...
136
+ def visit_withitem(self, node: withitem) -> Any: ...
137
+ # visit methods for deprecated nodes
138
+ def visit_ExtSlice(self, node: ExtSlice) -> Any: ...
139
+ def visit_Index(self, node: Index) -> Any: ...
140
+ def visit_Suite(self, node: Suite) -> Any: ...
141
+ def visit_AugLoad(self, node: AugLoad) -> Any: ...
142
+ def visit_AugStore(self, node: AugStore) -> Any: ...
143
+ def visit_Param(self, node: Param) -> Any: ...
144
+ def visit_Num(self, node: Num) -> Any: ...
145
+ def visit_Str(self, node: Str) -> Any: ...
146
+ def visit_Bytes(self, node: Bytes) -> Any: ...
147
+ def visit_NameConstant(self, node: NameConstant) -> Any: ...
148
+ def visit_Ellipsis(self, node: Ellipsis) -> Any: ...
149
+
150
+ class NodeTransformer(NodeVisitor):
151
+ def generic_visit(self, node: AST) -> AST: ...
152
+ # TODO: Override the visit_* methods with better return types.
153
+ # The usual return type is Optional[AST], but Iterable[AST]
154
+ # is also allowed in some cases -- this needs to be mapped.
155
+
156
+ _T = TypeVar("_T", bound=AST)
157
+
158
+ if sys.version_info >= (3, 8):
159
+ @overload
160
+ def parse(
161
+ source: Union[str, bytes],
162
+ filename: Union[str, bytes] = ...,
163
+ mode: Literal["exec"] = ...,
164
+ *,
165
+ type_comments: bool = ...,
166
+ feature_version: Union[None, int, _typing.Tuple[int, int]] = ...,
167
+ ) -> Module: ...
168
+ @overload
169
+ def parse(
170
+ source: Union[str, bytes],
171
+ filename: Union[str, bytes] = ...,
172
+ mode: str = ...,
173
+ *,
174
+ type_comments: bool = ...,
175
+ feature_version: Union[None, int, _typing.Tuple[int, int]] = ...,
176
+ ) -> AST: ...
177
+
178
+ else:
179
+ @overload
180
+ def parse(source: Union[str, bytes], filename: Union[str, bytes] = ..., mode: Literal["exec"] = ...) -> Module: ...
181
+ @overload
182
+ def parse(source: Union[str, bytes], filename: Union[str, bytes] = ..., mode: str = ...) -> AST: ...
183
+
184
+ if sys.version_info >= (3, 9):
185
+ def unparse(ast_obj: AST) -> str: ...
186
+
187
+ def copy_location(new_node: _T, old_node: AST) -> _T: ...
188
+
189
+ if sys.version_info >= (3, 9):
190
+ def dump(
191
+ node: AST, annotate_fields: bool = ..., include_attributes: bool = ..., *, indent: Union[int, str, None] = ...
192
+ ) -> str: ...
193
+
194
+ else:
195
+ def dump(node: AST, annotate_fields: bool = ..., include_attributes: bool = ...) -> str: ...
196
+
197
+ def fix_missing_locations(node: _T) -> _T: ...
198
+ def get_docstring(node: AST, clean: bool = ...) -> Optional[str]: ...
199
+ def increment_lineno(node: _T, n: int = ...) -> _T: ...
200
+ def iter_child_nodes(node: AST) -> Iterator[AST]: ...
201
+ def iter_fields(node: AST) -> Iterator[_typing.Tuple[str, Any]]: ...
202
+ def literal_eval(node_or_string: Union[str, AST]) -> Any: ...
203
+
204
+ if sys.version_info >= (3, 8):
205
+ def get_source_segment(source: str, node: AST, *, padded: bool = ...) -> Optional[str]: ...
206
+
207
+ def walk(node: AST) -> Iterator[AST]: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/atexit.pyi ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ from typing import Any, Callable
2
+
3
+ def _clear() -> None: ...
4
+ def _ncallbacks() -> int: ...
5
+ def _run_exitfuncs() -> None: ...
6
+ def register(func: Callable[..., Any], *args: Any, **kwargs: Any) -> Callable[..., Any]: ...
7
+ def unregister(func: Callable[..., Any]) -> None: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/compileall.pyi ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from _typeshed import AnyPath
3
+ from typing import Any, Optional, Pattern
4
+
5
+ if sys.version_info >= (3, 7):
6
+ from py_compile import PycInvalidationMode
7
+
8
+ if sys.version_info >= (3, 9):
9
+ def compile_dir(
10
+ dir: AnyPath,
11
+ maxlevels: Optional[int] = ...,
12
+ ddir: Optional[AnyPath] = ...,
13
+ force: bool = ...,
14
+ rx: Optional[Pattern[Any]] = ...,
15
+ quiet: int = ...,
16
+ legacy: bool = ...,
17
+ optimize: int = ...,
18
+ workers: int = ...,
19
+ invalidation_mode: Optional[PycInvalidationMode] = ...,
20
+ *,
21
+ stripdir: Optional[str] = ..., # TODO: change to Optional[AnyPath] once https://bugs.python.org/issue40447 is resolved
22
+ prependdir: Optional[AnyPath] = ...,
23
+ limit_sl_dest: Optional[AnyPath] = ...,
24
+ hardlink_dupes: bool = ...,
25
+ ) -> int: ...
26
+ def compile_file(
27
+ fullname: AnyPath,
28
+ ddir: Optional[AnyPath] = ...,
29
+ force: bool = ...,
30
+ rx: Optional[Pattern[Any]] = ...,
31
+ quiet: int = ...,
32
+ legacy: bool = ...,
33
+ optimize: int = ...,
34
+ invalidation_mode: Optional[PycInvalidationMode] = ...,
35
+ *,
36
+ stripdir: Optional[str] = ..., # TODO: change to Optional[AnyPath] once https://bugs.python.org/issue40447 is resolved
37
+ prependdir: Optional[AnyPath] = ...,
38
+ limit_sl_dest: Optional[AnyPath] = ...,
39
+ hardlink_dupes: bool = ...,
40
+ ) -> int: ...
41
+
42
+ elif sys.version_info >= (3, 7):
43
+ def compile_dir(
44
+ dir: AnyPath,
45
+ maxlevels: int = ...,
46
+ ddir: Optional[AnyPath] = ...,
47
+ force: bool = ...,
48
+ rx: Optional[Pattern[Any]] = ...,
49
+ quiet: int = ...,
50
+ legacy: bool = ...,
51
+ optimize: int = ...,
52
+ workers: int = ...,
53
+ invalidation_mode: Optional[PycInvalidationMode] = ...,
54
+ ) -> int: ...
55
+ def compile_file(
56
+ fullname: AnyPath,
57
+ ddir: Optional[AnyPath] = ...,
58
+ force: bool = ...,
59
+ rx: Optional[Pattern[Any]] = ...,
60
+ quiet: int = ...,
61
+ legacy: bool = ...,
62
+ optimize: int = ...,
63
+ invalidation_mode: Optional[PycInvalidationMode] = ...,
64
+ ) -> int: ...
65
+
66
+ else:
67
+ # rx can be any object with a 'search' method; once we have Protocols we can change the type
68
+ def compile_dir(
69
+ dir: AnyPath,
70
+ maxlevels: int = ...,
71
+ ddir: Optional[AnyPath] = ...,
72
+ force: bool = ...,
73
+ rx: Optional[Pattern[Any]] = ...,
74
+ quiet: int = ...,
75
+ legacy: bool = ...,
76
+ optimize: int = ...,
77
+ workers: int = ...,
78
+ ) -> int: ...
79
+ def compile_file(
80
+ fullname: AnyPath,
81
+ ddir: Optional[AnyPath] = ...,
82
+ force: bool = ...,
83
+ rx: Optional[Pattern[Any]] = ...,
84
+ quiet: int = ...,
85
+ legacy: bool = ...,
86
+ optimize: int = ...,
87
+ ) -> int: ...
88
+
89
+ if sys.version_info >= (3, 7):
90
+ def compile_path(
91
+ skip_curdir: bool = ...,
92
+ maxlevels: int = ...,
93
+ force: bool = ...,
94
+ quiet: int = ...,
95
+ legacy: bool = ...,
96
+ optimize: int = ...,
97
+ invalidation_mode: Optional[PycInvalidationMode] = ...,
98
+ ) -> int: ...
99
+
100
+ else:
101
+ def compile_path(
102
+ skip_curdir: bool = ...,
103
+ maxlevels: int = ...,
104
+ force: bool = ...,
105
+ quiet: int = ...,
106
+ legacy: bool = ...,
107
+ optimize: int = ...,
108
+ ) -> int: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/copyreg.pyi ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, Callable, Hashable, List, Optional, SupportsInt, Tuple, TypeVar, Union
2
+
3
+ _Type = TypeVar("_Type", bound=type)
4
+ _Reduce = Union[Tuple[Callable[..., _Type], Tuple[Any, ...]], Tuple[Callable[..., _Type], Tuple[Any, ...], Optional[Any]]]
5
+
6
+ __all__: List[str]
7
+
8
+ def pickle(
9
+ ob_type: _Type,
10
+ pickle_function: Callable[[_Type], Union[str, _Reduce[_Type]]],
11
+ constructor_ob: Optional[Callable[[_Reduce[_Type]], _Type]] = ...,
12
+ ) -> None: ...
13
+ def constructor(object: Callable[[_Reduce[_Type]], _Type]) -> None: ...
14
+ def add_extension(module: Hashable, name: Hashable, code: SupportsInt) -> None: ...
15
+ def remove_extension(module: Hashable, name: Hashable, code: int) -> None: ...
16
+ def clear_extension_cache() -> None: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/enum.pyi ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from abc import ABCMeta
3
+ from typing import Any, Dict, Iterator, List, Mapping, Type, TypeVar, Union
4
+
5
+ _T = TypeVar("_T")
6
+ _S = TypeVar("_S", bound=Type[Enum])
7
+
8
+ # Note: EnumMeta actually subclasses type directly, not ABCMeta.
9
+ # This is a temporary workaround to allow multiple creation of enums with builtins
10
+ # such as str as mixins, which due to the handling of ABCs of builtin types, cause
11
+ # spurious inconsistent metaclass structure. See #1595.
12
+ # Structurally: Iterable[T], Reversible[T], Container[T] where T is the enum itself
13
+ class EnumMeta(ABCMeta):
14
+ def __iter__(self: Type[_T]) -> Iterator[_T]: ...
15
+ def __reversed__(self: Type[_T]) -> Iterator[_T]: ...
16
+ def __contains__(self: Type[_T], member: object) -> bool: ...
17
+ def __getitem__(self: Type[_T], name: str) -> _T: ...
18
+ @property
19
+ def __members__(self: Type[_T]) -> Mapping[str, _T]: ...
20
+ def __len__(self) -> int: ...
21
+
22
+ class Enum(metaclass=EnumMeta):
23
+ name: str
24
+ value: Any
25
+ _name_: str
26
+ _value_: Any
27
+ _member_names_: List[str] # undocumented
28
+ _member_map_: Dict[str, Enum] # undocumented
29
+ _value2member_map_: Dict[int, Enum] # undocumented
30
+ if sys.version_info >= (3, 7):
31
+ _ignore_: Union[str, List[str]]
32
+ _order_: str
33
+ __order__: str
34
+ @classmethod
35
+ def _missing_(cls, value: object) -> Any: ...
36
+ @staticmethod
37
+ def _generate_next_value_(name: str, start: int, count: int, last_values: List[Any]) -> Any: ...
38
+ def __new__(cls: Type[_T], value: object) -> _T: ...
39
+ def __repr__(self) -> str: ...
40
+ def __str__(self) -> str: ...
41
+ def __dir__(self) -> List[str]: ...
42
+ def __format__(self, format_spec: str) -> str: ...
43
+ def __hash__(self) -> Any: ...
44
+ def __reduce_ex__(self, proto: object) -> Any: ...
45
+
46
+ class IntEnum(int, Enum):
47
+ value: int
48
+
49
+ def unique(enumeration: _S) -> _S: ...
50
+
51
+ _auto_null: Any
52
+
53
+ # subclassing IntFlag so it picks up all implemented base functions, best modeling behavior of enum.auto()
54
+ class auto(IntFlag):
55
+ value: Any
56
+
57
+ class Flag(Enum):
58
+ def __contains__(self: _T, other: _T) -> bool: ...
59
+ def __repr__(self) -> str: ...
60
+ def __str__(self) -> str: ...
61
+ def __bool__(self) -> bool: ...
62
+ def __or__(self: _T, other: _T) -> _T: ...
63
+ def __and__(self: _T, other: _T) -> _T: ...
64
+ def __xor__(self: _T, other: _T) -> _T: ...
65
+ def __invert__(self: _T) -> _T: ...
66
+
67
+ class IntFlag(int, Flag):
68
+ def __or__(self: _T, other: Union[int, _T]) -> _T: ...
69
+ def __and__(self: _T, other: Union[int, _T]) -> _T: ...
70
+ def __xor__(self: _T, other: Union[int, _T]) -> _T: ...
71
+ __ror__ = __or__
72
+ __rand__ = __and__
73
+ __rxor__ = __xor__
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/faulthandler.pyi ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from _typeshed import FileDescriptorLike
3
+
4
+ def cancel_dump_traceback_later() -> None: ...
5
+ def disable() -> None: ...
6
+ def dump_traceback(file: FileDescriptorLike = ..., all_threads: bool = ...) -> None: ...
7
+ def dump_traceback_later(timeout: float, repeat: bool = ..., file: FileDescriptorLike = ..., exit: bool = ...) -> None: ...
8
+ def enable(file: FileDescriptorLike = ..., all_threads: bool = ...) -> None: ...
9
+ def is_enabled() -> bool: ...
10
+
11
+ if sys.platform != "win32":
12
+ def register(signum: int, file: FileDescriptorLike = ..., all_threads: bool = ..., chain: bool = ...) -> None: ...
13
+ def unregister(signum: int) -> None: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/fcntl.pyi ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from _typeshed import FileDescriptorLike
3
+ from array import array
4
+ from typing import Any, Union, overload
5
+ from typing_extensions import Literal
6
+
7
+ FASYNC: int
8
+ FD_CLOEXEC: int
9
+ DN_ACCESS: int
10
+ DN_ATTRIB: int
11
+ DN_CREATE: int
12
+ DN_DELETE: int
13
+ DN_MODIFY: int
14
+ DN_MULTISHOT: int
15
+ DN_RENAME: int
16
+ F_DUPFD: int
17
+ F_DUPFD_CLOEXEC: int
18
+ F_FULLFSYNC: int
19
+ F_EXLCK: int
20
+ F_GETFD: int
21
+ F_GETFL: int
22
+ F_GETLEASE: int
23
+ F_GETLK: int
24
+ F_GETLK64: int
25
+ F_GETOWN: int
26
+ F_NOCACHE: int
27
+ F_GETSIG: int
28
+ F_NOTIFY: int
29
+ F_RDLCK: int
30
+ F_SETFD: int
31
+ F_SETFL: int
32
+ F_SETLEASE: int
33
+ F_SETLK: int
34
+ F_SETLK64: int
35
+ F_SETLKW: int
36
+ F_SETLKW64: int
37
+ if sys.version_info >= (3, 9) and sys.platform == "linux":
38
+ F_OFD_GETLK: int
39
+ F_OFD_SETLK: int
40
+ F_OFD_SETLKW: int
41
+ F_SETOWN: int
42
+ F_SETSIG: int
43
+ F_SHLCK: int
44
+ F_UNLCK: int
45
+ F_WRLCK: int
46
+ I_ATMARK: int
47
+ I_CANPUT: int
48
+ I_CKBAND: int
49
+ I_FDINSERT: int
50
+ I_FIND: int
51
+ I_FLUSH: int
52
+ I_FLUSHBAND: int
53
+ I_GETBAND: int
54
+ I_GETCLTIME: int
55
+ I_GETSIG: int
56
+ I_GRDOPT: int
57
+ I_GWROPT: int
58
+ I_LINK: int
59
+ I_LIST: int
60
+ I_LOOK: int
61
+ I_NREAD: int
62
+ I_PEEK: int
63
+ I_PLINK: int
64
+ I_POP: int
65
+ I_PUNLINK: int
66
+ I_PUSH: int
67
+ I_RECVFD: int
68
+ I_SENDFD: int
69
+ I_SETCLTIME: int
70
+ I_SETSIG: int
71
+ I_SRDOPT: int
72
+ I_STR: int
73
+ I_SWROPT: int
74
+ I_UNLINK: int
75
+ LOCK_EX: int
76
+ LOCK_MAND: int
77
+ LOCK_NB: int
78
+ LOCK_READ: int
79
+ LOCK_RW: int
80
+ LOCK_SH: int
81
+ LOCK_UN: int
82
+ LOCK_WRITE: int
83
+ @overload
84
+ def fcntl(__fd: FileDescriptorLike, __cmd: int, __arg: int = ...) -> int: ...
85
+ @overload
86
+ def fcntl(__fd: FileDescriptorLike, __cmd: int, __arg: bytes) -> bytes: ...
87
+
88
+ _ReadOnlyBuffer = bytes
89
+ _WritableBuffer = Union[bytearray, memoryview, array]
90
+ @overload
91
+ def ioctl(__fd: FileDescriptorLike, __request: int, __arg: int = ..., __mutate_flag: bool = ...) -> int: ...
92
+ @overload
93
+ def ioctl(__fd: FileDescriptorLike, __request: int, __arg: _WritableBuffer, __mutate_flag: Literal[True] = ...) -> int: ...
94
+ @overload
95
+ def ioctl(__fd: FileDescriptorLike, __request: int, __arg: _WritableBuffer, __mutate_flag: Literal[False]) -> bytes: ...
96
+ @overload
97
+ def ioctl(__fd: FileDescriptorLike, __request: int, __arg: _ReadOnlyBuffer, __mutate_flag: bool = ...) -> bytes: ...
98
+ def flock(__fd: FileDescriptorLike, __operation: int) -> None: ...
99
+ def lockf(__fd: FileDescriptorLike, __cmd: int, __len: int = ..., __start: int = ..., __whence: int = ...) -> Any: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/gc.pyi ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from typing import Any, Dict, List, Optional, Tuple
3
+
4
+ DEBUG_COLLECTABLE: int
5
+ DEBUG_LEAK: int
6
+ DEBUG_SAVEALL: int
7
+ DEBUG_STATS: int
8
+ DEBUG_UNCOLLECTABLE: int
9
+ callbacks: List[Any]
10
+ garbage: List[Any]
11
+
12
+ def collect(generation: int = ...) -> int: ...
13
+ def disable() -> None: ...
14
+ def enable() -> None: ...
15
+ def get_count() -> Tuple[int, int, int]: ...
16
+ def get_debug() -> int: ...
17
+
18
+ if sys.version_info >= (3, 8):
19
+ def get_objects(generation: Optional[int] = ...) -> List[Any]: ...
20
+
21
+ else:
22
+ def get_objects() -> List[Any]: ...
23
+
24
+ if sys.version_info >= (3, 7):
25
+ def freeze() -> None: ...
26
+ def unfreeze() -> None: ...
27
+ def get_freeze_count() -> int: ...
28
+
29
+ def get_referents(*objs: Any) -> List[Any]: ...
30
+ def get_referrers(*objs: Any) -> List[Any]: ...
31
+ def get_stats() -> List[Dict[str, Any]]: ...
32
+ def get_threshold() -> Tuple[int, int, int]: ...
33
+ def is_tracked(__obj: Any) -> bool: ...
34
+
35
+ if sys.version_info >= (3, 9):
36
+ def is_finalized(__obj: Any) -> bool: ...
37
+
38
+ def isenabled() -> bool: ...
39
+ def set_debug(__flags: int) -> None: ...
40
+ def set_threshold(threshold0: int, threshold1: int = ..., threshold2: int = ...) -> None: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/getpass.pyi ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from typing import Optional, TextIO
2
+
3
+ def getpass(prompt: str = ..., stream: Optional[TextIO] = ...) -> str: ...
4
+ def getuser() -> str: ...
5
+
6
+ class GetPassWarning(UserWarning): ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/gettext.pyi ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from _typeshed import StrPath
3
+ from typing import IO, Any, Container, Iterable, Optional, Sequence, Type, TypeVar, overload
4
+ from typing_extensions import Literal
5
+
6
+ class NullTranslations:
7
+ def __init__(self, fp: Optional[IO[str]] = ...) -> None: ...
8
+ def _parse(self, fp: IO[str]) -> None: ...
9
+ def add_fallback(self, fallback: NullTranslations) -> None: ...
10
+ def gettext(self, message: str) -> str: ...
11
+ def lgettext(self, message: str) -> str: ...
12
+ def ngettext(self, msgid1: str, msgid2: str, n: int) -> str: ...
13
+ def lngettext(self, msgid1: str, msgid2: str, n: int) -> str: ...
14
+ if sys.version_info >= (3, 8):
15
+ def pgettext(self, context: str, message: str) -> str: ...
16
+ def npgettext(self, context: str, msgid1: str, msgid2: str, n: int) -> str: ...
17
+ def info(self) -> Any: ...
18
+ def charset(self) -> Any: ...
19
+ def output_charset(self) -> Any: ...
20
+ def set_output_charset(self, charset: str) -> None: ...
21
+ def install(self, names: Optional[Container[str]] = ...) -> None: ...
22
+
23
+ class GNUTranslations(NullTranslations):
24
+ LE_MAGIC: int
25
+ BE_MAGIC: int
26
+ CONTEXT: str
27
+ VERSIONS: Sequence[int]
28
+
29
+ def find(domain: str, localedir: Optional[StrPath] = ..., languages: Optional[Iterable[str]] = ..., all: bool = ...) -> Any: ...
30
+
31
+ _T = TypeVar("_T")
32
+ @overload
33
+ def translation(
34
+ domain: str,
35
+ localedir: Optional[StrPath] = ...,
36
+ languages: Optional[Iterable[str]] = ...,
37
+ class_: None = ...,
38
+ fallback: bool = ...,
39
+ codeset: Optional[str] = ...,
40
+ ) -> NullTranslations: ...
41
+ @overload
42
+ def translation(
43
+ domain: str,
44
+ localedir: Optional[StrPath] = ...,
45
+ languages: Optional[Iterable[str]] = ...,
46
+ class_: Type[_T] = ...,
47
+ fallback: Literal[False] = ...,
48
+ codeset: Optional[str] = ...,
49
+ ) -> _T: ...
50
+ @overload
51
+ def translation(
52
+ domain: str,
53
+ localedir: Optional[StrPath] = ...,
54
+ languages: Optional[Iterable[str]] = ...,
55
+ class_: Type[_T] = ...,
56
+ fallback: Literal[True] = ...,
57
+ codeset: Optional[str] = ...,
58
+ ) -> Any: ...
59
+ def install(
60
+ domain: str, localedir: Optional[StrPath] = ..., codeset: Optional[str] = ..., names: Optional[Container[str]] = ...
61
+ ) -> None: ...
62
+ def textdomain(domain: Optional[str] = ...) -> str: ...
63
+ def bindtextdomain(domain: str, localedir: Optional[StrPath] = ...) -> str: ...
64
+ def bind_textdomain_codeset(domain: str, codeset: Optional[str] = ...) -> str: ...
65
+ def dgettext(domain: str, message: str) -> str: ...
66
+ def ldgettext(domain: str, message: str) -> str: ...
67
+ def dngettext(domain: str, msgid1: str, msgid2: str, n: int) -> str: ...
68
+ def ldngettext(domain: str, msgid1: str, msgid2: str, n: int) -> str: ...
69
+ def gettext(message: str) -> str: ...
70
+ def lgettext(message: str) -> str: ...
71
+ def ngettext(msgid1: str, msgid2: str, n: int) -> str: ...
72
+ def lngettext(msgid1: str, msgid2: str, n: int) -> str: ...
73
+
74
+ if sys.version_info >= (3, 8):
75
+ def pgettext(context: str, message: str) -> str: ...
76
+ def dpgettext(domain: str, context: str, message: str) -> str: ...
77
+ def npgettext(context: str, msgid1: str, msgid2: str, n: int) -> str: ...
78
+ def dnpgettext(domain: str, context: str, msgid1: str, msgid2: str, n: int) -> str: ...
79
+
80
+ Catalog = translation
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/glob.pyi ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ from typing import AnyStr, Iterator, List, Union
2
+
3
+ def glob0(dirname: AnyStr, pattern: AnyStr) -> List[AnyStr]: ...
4
+ def glob1(dirname: AnyStr, pattern: AnyStr) -> List[AnyStr]: ...
5
+ def glob(pathname: AnyStr, *, recursive: bool = ...) -> List[AnyStr]: ...
6
+ def iglob(pathname: AnyStr, *, recursive: bool = ...) -> Iterator[AnyStr]: ...
7
+ def escape(pathname: AnyStr) -> AnyStr: ...
8
+ def has_magic(s: Union[str, bytes]) -> bool: ... # undocumented
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/gzip.pyi ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import _compression
2
+ import sys
3
+ import zlib
4
+ from _typeshed import AnyPath, ReadableBuffer
5
+ from typing import IO, Optional, TextIO, Union, overload
6
+ from typing_extensions import Literal
7
+
8
+ _OpenBinaryMode = Literal["r", "rb", "a", "ab", "w", "wb", "x", "xb"]
9
+ _OpenTextMode = Literal["rt", "at", "wt", "xt"]
10
+ @overload
11
+ def open(
12
+ filename: Union[AnyPath, IO[bytes]],
13
+ mode: _OpenBinaryMode = ...,
14
+ compresslevel: int = ...,
15
+ encoding: None = ...,
16
+ errors: None = ...,
17
+ newline: None = ...,
18
+ ) -> GzipFile: ...
19
+ @overload
20
+ def open(
21
+ filename: AnyPath,
22
+ mode: _OpenTextMode,
23
+ compresslevel: int = ...,
24
+ encoding: Optional[str] = ...,
25
+ errors: Optional[str] = ...,
26
+ newline: Optional[str] = ...,
27
+ ) -> TextIO: ...
28
+ @overload
29
+ def open(
30
+ filename: Union[AnyPath, IO[bytes]],
31
+ mode: str,
32
+ compresslevel: int = ...,
33
+ encoding: Optional[str] = ...,
34
+ errors: Optional[str] = ...,
35
+ newline: Optional[str] = ...,
36
+ ) -> Union[GzipFile, TextIO]: ...
37
+
38
+ class _PaddedFile:
39
+ file: IO[bytes]
40
+ def __init__(self, f: IO[bytes], prepend: bytes = ...) -> None: ...
41
+ def read(self, size: int) -> bytes: ...
42
+ def prepend(self, prepend: bytes = ...) -> None: ...
43
+ def seek(self, off: int) -> int: ...
44
+ def seekable(self) -> bool: ...
45
+
46
+ if sys.version_info >= (3, 8):
47
+ class BadGzipFile(OSError): ...
48
+
49
+ class GzipFile(_compression.BaseStream):
50
+ myfileobj: Optional[IO[bytes]]
51
+ mode: str
52
+ name: str
53
+ compress: zlib._Compress
54
+ fileobj: IO[bytes]
55
+ def __init__(
56
+ self,
57
+ filename: Optional[AnyPath] = ...,
58
+ mode: Optional[str] = ...,
59
+ compresslevel: int = ...,
60
+ fileobj: Optional[IO[bytes]] = ...,
61
+ mtime: Optional[float] = ...,
62
+ ) -> None: ...
63
+ @property
64
+ def filename(self) -> str: ...
65
+ @property
66
+ def mtime(self) -> Optional[int]: ...
67
+ crc: int
68
+ def write(self, data: ReadableBuffer) -> int: ...
69
+ def read(self, size: Optional[int] = ...) -> bytes: ...
70
+ def read1(self, size: int = ...) -> bytes: ...
71
+ def peek(self, n: int) -> bytes: ...
72
+ @property
73
+ def closed(self) -> bool: ...
74
+ def close(self) -> None: ...
75
+ def flush(self, zlib_mode: int = ...) -> None: ...
76
+ def fileno(self) -> int: ...
77
+ def rewind(self) -> None: ...
78
+ def readable(self) -> bool: ...
79
+ def writable(self) -> bool: ...
80
+ def seekable(self) -> bool: ...
81
+ def seek(self, offset: int, whence: int = ...) -> int: ...
82
+ def readline(self, size: Optional[int] = ...) -> bytes: ...
83
+
84
+ class _GzipReader(_compression.DecompressReader):
85
+ def __init__(self, fp: IO[bytes]) -> None: ...
86
+ def read(self, size: int = ...) -> bytes: ...
87
+
88
+ if sys.version_info >= (3, 8):
89
+ def compress(data: bytes, compresslevel: int = ..., *, mtime: Optional[float] = ...) -> bytes: ...
90
+
91
+ else:
92
+ def compress(data: bytes, compresslevel: int = ...) -> bytes: ...
93
+
94
+ def decompress(data: bytes) -> bytes: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/hashlib.pyi ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from _typeshed import ReadableBuffer
3
+ from typing import AbstractSet, Optional
4
+
5
+ class _Hash(object):
6
+ digest_size: int
7
+ block_size: int
8
+
9
+ # [Python documentation note] Changed in version 3.4: The name attribute has
10
+ # been present in CPython since its inception, but until Python 3.4 was not
11
+ # formally specified, so may not exist on some platforms
12
+ name: str
13
+ def __init__(self, data: ReadableBuffer = ...) -> None: ...
14
+ def copy(self) -> _Hash: ...
15
+ def digest(self) -> bytes: ...
16
+ def hexdigest(self) -> str: ...
17
+ def update(self, __data: ReadableBuffer) -> None: ...
18
+
19
+ if sys.version_info >= (3, 9):
20
+ def md5(string: ReadableBuffer = ..., *, usedforsecurity: bool = ...) -> _Hash: ...
21
+ def sha1(string: ReadableBuffer = ..., *, usedforsecurity: bool = ...) -> _Hash: ...
22
+ def sha224(string: ReadableBuffer = ..., *, usedforsecurity: bool = ...) -> _Hash: ...
23
+ def sha256(string: ReadableBuffer = ..., *, usedforsecurity: bool = ...) -> _Hash: ...
24
+ def sha384(string: ReadableBuffer = ..., *, usedforsecurity: bool = ...) -> _Hash: ...
25
+ def sha512(string: ReadableBuffer = ..., *, usedforsecurity: bool = ...) -> _Hash: ...
26
+
27
+ elif sys.version_info >= (3, 8):
28
+ def md5(string: ReadableBuffer = ...) -> _Hash: ...
29
+ def sha1(string: ReadableBuffer = ...) -> _Hash: ...
30
+ def sha224(string: ReadableBuffer = ...) -> _Hash: ...
31
+ def sha256(string: ReadableBuffer = ...) -> _Hash: ...
32
+ def sha384(string: ReadableBuffer = ...) -> _Hash: ...
33
+ def sha512(string: ReadableBuffer = ...) -> _Hash: ...
34
+
35
+ else:
36
+ def md5(__string: ReadableBuffer = ...) -> _Hash: ...
37
+ def sha1(__string: ReadableBuffer = ...) -> _Hash: ...
38
+ def sha224(__string: ReadableBuffer = ...) -> _Hash: ...
39
+ def sha256(__string: ReadableBuffer = ...) -> _Hash: ...
40
+ def sha384(__string: ReadableBuffer = ...) -> _Hash: ...
41
+ def sha512(__string: ReadableBuffer = ...) -> _Hash: ...
42
+
43
+ def new(name: str, data: ReadableBuffer = ...) -> _Hash: ...
44
+
45
+ algorithms_guaranteed: AbstractSet[str]
46
+ algorithms_available: AbstractSet[str]
47
+
48
+ def pbkdf2_hmac(
49
+ hash_name: str, password: ReadableBuffer, salt: ReadableBuffer, iterations: int, dklen: Optional[int] = ...
50
+ ) -> bytes: ...
51
+
52
+ class _VarLenHash(object):
53
+ digest_size: int
54
+ block_size: int
55
+ name: str
56
+ def __init__(self, data: ReadableBuffer = ...) -> None: ...
57
+ def copy(self) -> _VarLenHash: ...
58
+ def digest(self, __length: int) -> bytes: ...
59
+ def hexdigest(self, __length: int) -> str: ...
60
+ def update(self, __data: ReadableBuffer) -> None: ...
61
+
62
+ sha3_224 = _Hash
63
+ sha3_256 = _Hash
64
+ sha3_384 = _Hash
65
+ sha3_512 = _Hash
66
+ shake_128 = _VarLenHash
67
+ shake_256 = _VarLenHash
68
+
69
+ def scrypt(
70
+ password: ReadableBuffer,
71
+ *,
72
+ salt: Optional[ReadableBuffer] = ...,
73
+ n: Optional[int] = ...,
74
+ r: Optional[int] = ...,
75
+ p: Optional[int] = ...,
76
+ maxmem: int = ...,
77
+ dklen: int = ...,
78
+ ) -> bytes: ...
79
+
80
+ class _BlakeHash(_Hash):
81
+ MAX_DIGEST_SIZE: int
82
+ MAX_KEY_SIZE: int
83
+ PERSON_SIZE: int
84
+ SALT_SIZE: int
85
+
86
+ if sys.version_info >= (3, 9):
87
+ def __init__(
88
+ self,
89
+ __data: ReadableBuffer = ...,
90
+ *,
91
+ digest_size: int = ...,
92
+ key: ReadableBuffer = ...,
93
+ salt: ReadableBuffer = ...,
94
+ person: ReadableBuffer = ...,
95
+ fanout: int = ...,
96
+ depth: int = ...,
97
+ leaf_size: int = ...,
98
+ node_offset: int = ...,
99
+ node_depth: int = ...,
100
+ inner_size: int = ...,
101
+ last_node: bool = ...,
102
+ usedforsecurity: bool = ...,
103
+ ) -> None: ...
104
+ else:
105
+ def __init__(
106
+ self,
107
+ __data: ReadableBuffer = ...,
108
+ *,
109
+ digest_size: int = ...,
110
+ key: ReadableBuffer = ...,
111
+ salt: ReadableBuffer = ...,
112
+ person: ReadableBuffer = ...,
113
+ fanout: int = ...,
114
+ depth: int = ...,
115
+ leaf_size: int = ...,
116
+ node_offset: int = ...,
117
+ node_depth: int = ...,
118
+ inner_size: int = ...,
119
+ last_node: bool = ...,
120
+ ) -> None: ...
121
+
122
+ blake2b = _BlakeHash
123
+ blake2s = _BlakeHash
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/heapq.pyi ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from _typeshed import SupportsLessThan
2
+ from typing import Any, Callable, Iterable, List, Optional, TypeVar
3
+
4
+ _T = TypeVar("_T")
5
+
6
+ def heappush(__heap: List[_T], __item: _T) -> None: ...
7
+ def heappop(__heap: List[_T]) -> _T: ...
8
+ def heappushpop(__heap: List[_T], __item: _T) -> _T: ...
9
+ def heapify(__heap: List[_T]) -> None: ...
10
+ def heapreplace(__heap: List[_T], __item: _T) -> _T: ...
11
+ def merge(*iterables: Iterable[_T], key: Optional[Callable[[_T], Any]] = ..., reverse: bool = ...) -> Iterable[_T]: ...
12
+ def nlargest(n: int, iterable: Iterable[_T], key: Optional[Callable[[_T], SupportsLessThan]] = ...) -> List[_T]: ...
13
+ def nsmallest(n: int, iterable: Iterable[_T], key: Optional[Callable[[_T], SupportsLessThan]] = ...) -> List[_T]: ...
14
+ def _heapify_max(__x: List[_T]) -> None: ... # undocumented
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/imp.pyi ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import types
3
+ from _typeshed import StrPath
4
+ from typing import IO, Any, List, Optional, Protocol, Tuple, TypeVar, Union
5
+
6
+ from _imp import (
7
+ acquire_lock as acquire_lock,
8
+ create_dynamic as create_dynamic,
9
+ get_frozen_object as get_frozen_object,
10
+ init_frozen as init_frozen,
11
+ is_builtin as is_builtin,
12
+ is_frozen as is_frozen,
13
+ is_frozen_package as is_frozen_package,
14
+ lock_held as lock_held,
15
+ release_lock as release_lock,
16
+ )
17
+
18
+ _T = TypeVar("_T")
19
+
20
+ SEARCH_ERROR: int
21
+ PY_SOURCE: int
22
+ PY_COMPILED: int
23
+ C_EXTENSION: int
24
+ PY_RESOURCE: int
25
+ PKG_DIRECTORY: int
26
+ C_BUILTIN: int
27
+ PY_FROZEN: int
28
+ PY_CODERESOURCE: int
29
+ IMP_HOOK: int
30
+
31
+ def new_module(name: str) -> types.ModuleType: ...
32
+ def get_magic() -> bytes: ...
33
+ def get_tag() -> str: ...
34
+ def cache_from_source(path: StrPath, debug_override: Optional[bool] = ...) -> str: ...
35
+ def source_from_cache(path: StrPath) -> str: ...
36
+ def get_suffixes() -> List[Tuple[str, str, int]]: ...
37
+
38
+ class NullImporter:
39
+ def __init__(self, path: StrPath) -> None: ...
40
+ def find_module(self, fullname: Any) -> None: ...
41
+
42
+ # Technically, a text file has to support a slightly different set of operations than a binary file,
43
+ # but we ignore that here.
44
+ class _FileLike(Protocol):
45
+ closed: bool
46
+ mode: str
47
+ def read(self) -> Union[str, bytes]: ...
48
+ def close(self) -> Any: ...
49
+ def __enter__(self) -> Any: ...
50
+ def __exit__(self, *args: Any) -> Any: ...
51
+
52
+ # PathLike doesn't work for the pathname argument here
53
+ def load_source(name: str, pathname: str, file: Optional[_FileLike] = ...) -> types.ModuleType: ...
54
+ def load_compiled(name: str, pathname: str, file: Optional[_FileLike] = ...) -> types.ModuleType: ...
55
+ def load_package(name: str, path: StrPath) -> types.ModuleType: ...
56
+ def load_module(name: str, file: Optional[_FileLike], filename: str, details: Tuple[str, str, int]) -> types.ModuleType: ...
57
+
58
+ # IO[Any] is a TextIOWrapper if name is a .py file, and a FileIO otherwise.
59
+ def find_module(
60
+ name: str, path: Union[None, List[str], List[os.PathLike[str]], List[StrPath]] = ...
61
+ ) -> Tuple[IO[Any], str, Tuple[str, str, int]]: ...
62
+ def reload(module: types.ModuleType) -> types.ModuleType: ...
63
+ def init_builtin(name: str) -> Optional[types.ModuleType]: ...
64
+ def load_dynamic(name: str, path: str, file: Any = ...) -> types.ModuleType: ... # file argument is ignored
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/inspect.pyi ADDED
@@ -0,0 +1,309 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import enum
2
+ import sys
3
+ from collections import OrderedDict
4
+ from types import CodeType, FrameType, FunctionType, MethodType, ModuleType, TracebackType
5
+ from typing import (
6
+ AbstractSet,
7
+ Any,
8
+ Callable,
9
+ ClassVar,
10
+ Dict,
11
+ Generator,
12
+ List,
13
+ Mapping,
14
+ NamedTuple,
15
+ Optional,
16
+ Sequence,
17
+ Tuple,
18
+ Type,
19
+ Union,
20
+ )
21
+ from typing_extensions import Literal
22
+
23
+ #
24
+ # Types and members
25
+ #
26
+ class EndOfBlock(Exception): ...
27
+
28
+ class BlockFinder:
29
+ indent: int
30
+ islambda: bool
31
+ started: bool
32
+ passline: bool
33
+ indecorator: bool
34
+ decoratorhasargs: bool
35
+ last: int
36
+ def tokeneater(self, type: int, token: str, srowcol: Tuple[int, int], erowcol: Tuple[int, int], line: str) -> None: ...
37
+
38
+ CO_OPTIMIZED: int
39
+ CO_NEWLOCALS: int
40
+ CO_VARARGS: int
41
+ CO_VARKEYWORDS: int
42
+ CO_NESTED: int
43
+ CO_GENERATOR: int
44
+ CO_NOFREE: int
45
+ CO_COROUTINE: int
46
+ CO_ITERABLE_COROUTINE: int
47
+ CO_ASYNC_GENERATOR: int
48
+ TPFLAGS_IS_ABSTRACT: int
49
+
50
+ def getmembers(object: object, predicate: Optional[Callable[[Any], bool]] = ...) -> List[Tuple[str, Any]]: ...
51
+ def getmodulename(path: str) -> Optional[str]: ...
52
+ def ismodule(object: object) -> bool: ...
53
+ def isclass(object: object) -> bool: ...
54
+ def ismethod(object: object) -> bool: ...
55
+ def isfunction(object: object) -> bool: ...
56
+
57
+ if sys.version_info >= (3, 8):
58
+ def isgeneratorfunction(obj: object) -> bool: ...
59
+ def iscoroutinefunction(obj: object) -> bool: ...
60
+
61
+ else:
62
+ def isgeneratorfunction(object: object) -> bool: ...
63
+ def iscoroutinefunction(object: object) -> bool: ...
64
+
65
+ def isgenerator(object: object) -> bool: ...
66
+ def iscoroutine(object: object) -> bool: ...
67
+ def isawaitable(object: object) -> bool: ...
68
+
69
+ if sys.version_info >= (3, 8):
70
+ def isasyncgenfunction(obj: object) -> bool: ...
71
+
72
+ else:
73
+ def isasyncgenfunction(object: object) -> bool: ...
74
+
75
+ def isasyncgen(object: object) -> bool: ...
76
+ def istraceback(object: object) -> bool: ...
77
+ def isframe(object: object) -> bool: ...
78
+ def iscode(object: object) -> bool: ...
79
+ def isbuiltin(object: object) -> bool: ...
80
+ def isroutine(object: object) -> bool: ...
81
+ def isabstract(object: object) -> bool: ...
82
+ def ismethoddescriptor(object: object) -> bool: ...
83
+ def isdatadescriptor(object: object) -> bool: ...
84
+ def isgetsetdescriptor(object: object) -> bool: ...
85
+ def ismemberdescriptor(object: object) -> bool: ...
86
+
87
+ #
88
+ # Retrieving source code
89
+ #
90
+ _SourceObjectType = Union[ModuleType, Type[Any], MethodType, FunctionType, TracebackType, FrameType, CodeType, Callable[..., Any]]
91
+
92
+ def findsource(object: _SourceObjectType) -> Tuple[List[str], int]: ...
93
+ def getabsfile(object: _SourceObjectType, _filename: Optional[str] = ...) -> str: ...
94
+ def getblock(lines: Sequence[str]) -> Sequence[str]: ...
95
+ def getdoc(object: object) -> Optional[str]: ...
96
+ def getcomments(object: object) -> Optional[str]: ...
97
+ def getfile(object: _SourceObjectType) -> str: ...
98
+ def getmodule(object: object, _filename: Optional[str] = ...) -> Optional[ModuleType]: ...
99
+ def getsourcefile(object: _SourceObjectType) -> Optional[str]: ...
100
+ def getsourcelines(object: _SourceObjectType) -> Tuple[List[str], int]: ...
101
+ def getsource(object: _SourceObjectType) -> str: ...
102
+ def cleandoc(doc: str) -> str: ...
103
+ def indentsize(line: str) -> int: ...
104
+
105
+ #
106
+ # Introspecting callables with the Signature object
107
+ #
108
+ def signature(obj: Callable[..., Any], *, follow_wrapped: bool = ...) -> Signature: ...
109
+
110
+ class Signature:
111
+ def __init__(self, parameters: Optional[Sequence[Parameter]] = ..., *, return_annotation: Any = ...) -> None: ...
112
+ # TODO: can we be more specific here?
113
+ empty: object = ...
114
+
115
+ parameters: Mapping[str, Parameter]
116
+
117
+ # TODO: can we be more specific here?
118
+ return_annotation: Any
119
+ def bind(self, *args: Any, **kwargs: Any) -> BoundArguments: ...
120
+ def bind_partial(self, *args: Any, **kwargs: Any) -> BoundArguments: ...
121
+ def replace(self, *, parameters: Optional[Sequence[Parameter]] = ..., return_annotation: Any = ...) -> Signature: ...
122
+ @classmethod
123
+ def from_callable(cls, obj: Callable[..., Any], *, follow_wrapped: bool = ...) -> Signature: ...
124
+
125
+ # The name is the same as the enum's name in CPython
126
+ class _ParameterKind(enum.IntEnum):
127
+ POSITIONAL_ONLY: int
128
+ POSITIONAL_OR_KEYWORD: int
129
+ VAR_POSITIONAL: int
130
+ KEYWORD_ONLY: int
131
+ VAR_KEYWORD: int
132
+
133
+ if sys.version_info >= (3, 8):
134
+ description: str
135
+
136
+ class Parameter:
137
+ def __init__(self, name: str, kind: _ParameterKind, *, default: Any = ..., annotation: Any = ...) -> None: ...
138
+ empty: Any = ...
139
+ name: str
140
+ default: Any
141
+ annotation: Any
142
+
143
+ kind: _ParameterKind
144
+ POSITIONAL_ONLY: ClassVar[Literal[_ParameterKind.POSITIONAL_ONLY]]
145
+ POSITIONAL_OR_KEYWORD: ClassVar[Literal[_ParameterKind.POSITIONAL_OR_KEYWORD]]
146
+ VAR_POSITIONAL: ClassVar[Literal[_ParameterKind.VAR_POSITIONAL]]
147
+ KEYWORD_ONLY: ClassVar[Literal[_ParameterKind.KEYWORD_ONLY]]
148
+ VAR_KEYWORD: ClassVar[Literal[_ParameterKind.VAR_KEYWORD]]
149
+ def replace(
150
+ self, *, name: Optional[str] = ..., kind: Optional[_ParameterKind] = ..., default: Any = ..., annotation: Any = ...
151
+ ) -> Parameter: ...
152
+
153
+ class BoundArguments:
154
+ arguments: OrderedDict[str, Any]
155
+ args: Tuple[Any, ...]
156
+ kwargs: Dict[str, Any]
157
+ signature: Signature
158
+ def __init__(self, signature: Signature, arguments: OrderedDict[str, Any]) -> None: ...
159
+ def apply_defaults(self) -> None: ...
160
+
161
+ #
162
+ # Classes and functions
163
+ #
164
+
165
+ # TODO: The actual return type should be List[_ClassTreeItem] but mypy doesn't
166
+ # seem to be supporting this at the moment:
167
+ # _ClassTreeItem = Union[List[_ClassTreeItem], Tuple[type, Tuple[type, ...]]]
168
+ def getclasstree(classes: List[type], unique: bool = ...) -> Any: ...
169
+
170
+ class ArgSpec(NamedTuple):
171
+ args: List[str]
172
+ varargs: Optional[str]
173
+ keywords: Optional[str]
174
+ defaults: Tuple[Any, ...]
175
+
176
+ class Arguments(NamedTuple):
177
+ args: List[str]
178
+ varargs: Optional[str]
179
+ varkw: Optional[str]
180
+
181
+ def getargs(co: CodeType) -> Arguments: ...
182
+ def getargspec(func: object) -> ArgSpec: ...
183
+
184
+ class FullArgSpec(NamedTuple):
185
+ args: List[str]
186
+ varargs: Optional[str]
187
+ varkw: Optional[str]
188
+ defaults: Optional[Tuple[Any, ...]]
189
+ kwonlyargs: List[str]
190
+ kwonlydefaults: Optional[Dict[str, Any]]
191
+ annotations: Dict[str, Any]
192
+
193
+ def getfullargspec(func: object) -> FullArgSpec: ...
194
+
195
+ class ArgInfo(NamedTuple):
196
+ args: List[str]
197
+ varargs: Optional[str]
198
+ keywords: Optional[str]
199
+ locals: Dict[str, Any]
200
+
201
+ def getargvalues(frame: FrameType) -> ArgInfo: ...
202
+ def formatannotation(annotation: object, base_module: Optional[str] = ...) -> str: ...
203
+ def formatannotationrelativeto(object: object) -> Callable[[object], str]: ...
204
+ def formatargspec(
205
+ args: List[str],
206
+ varargs: Optional[str] = ...,
207
+ varkw: Optional[str] = ...,
208
+ defaults: Optional[Tuple[Any, ...]] = ...,
209
+ kwonlyargs: Optional[Sequence[str]] = ...,
210
+ kwonlydefaults: Optional[Dict[str, Any]] = ...,
211
+ annotations: Dict[str, Any] = ...,
212
+ formatarg: Callable[[str], str] = ...,
213
+ formatvarargs: Callable[[str], str] = ...,
214
+ formatvarkw: Callable[[str], str] = ...,
215
+ formatvalue: Callable[[Any], str] = ...,
216
+ formatreturns: Callable[[Any], str] = ...,
217
+ formatannotation: Callable[[Any], str] = ...,
218
+ ) -> str: ...
219
+ def formatargvalues(
220
+ args: List[str],
221
+ varargs: Optional[str],
222
+ varkw: Optional[str],
223
+ locals: Optional[Dict[str, Any]],
224
+ formatarg: Optional[Callable[[str], str]] = ...,
225
+ formatvarargs: Optional[Callable[[str], str]] = ...,
226
+ formatvarkw: Optional[Callable[[str], str]] = ...,
227
+ formatvalue: Optional[Callable[[Any], str]] = ...,
228
+ ) -> str: ...
229
+ def getmro(cls: type) -> Tuple[type, ...]: ...
230
+ def getcallargs(__func: Callable[..., Any], *args: Any, **kwds: Any) -> Dict[str, Any]: ...
231
+
232
+ class ClosureVars(NamedTuple):
233
+ nonlocals: Mapping[str, Any]
234
+ globals: Mapping[str, Any]
235
+ builtins: Mapping[str, Any]
236
+ unbound: AbstractSet[str]
237
+
238
+ def getclosurevars(func: Callable[..., Any]) -> ClosureVars: ...
239
+ def unwrap(func: Callable[..., Any], *, stop: Optional[Callable[[Any], Any]] = ...) -> Any: ...
240
+
241
+ #
242
+ # The interpreter stack
243
+ #
244
+
245
+ class Traceback(NamedTuple):
246
+ filename: str
247
+ lineno: int
248
+ function: str
249
+ code_context: Optional[List[str]]
250
+ index: Optional[int] # type: ignore
251
+
252
+ class FrameInfo(NamedTuple):
253
+ frame: FrameType
254
+ filename: str
255
+ lineno: int
256
+ function: str
257
+ code_context: Optional[List[str]]
258
+ index: Optional[int] # type: ignore
259
+
260
+ def getframeinfo(frame: Union[FrameType, TracebackType], context: int = ...) -> Traceback: ...
261
+ def getouterframes(frame: Any, context: int = ...) -> List[FrameInfo]: ...
262
+ def getinnerframes(tb: TracebackType, context: int = ...) -> List[FrameInfo]: ...
263
+ def getlineno(frame: FrameType) -> int: ...
264
+ def currentframe() -> Optional[FrameType]: ...
265
+ def stack(context: int = ...) -> List[FrameInfo]: ...
266
+ def trace(context: int = ...) -> List[FrameInfo]: ...
267
+
268
+ #
269
+ # Fetching attributes statically
270
+ #
271
+
272
+ def getattr_static(obj: object, attr: str, default: Optional[Any] = ...) -> Any: ...
273
+
274
+ #
275
+ # Current State of Generators and Coroutines
276
+ #
277
+
278
+ # TODO In the next two blocks of code, can we be more specific regarding the
279
+ # type of the "enums"?
280
+
281
+ GEN_CREATED: str
282
+ GEN_RUNNING: str
283
+ GEN_SUSPENDED: str
284
+ GEN_CLOSED: str
285
+
286
+ def getgeneratorstate(generator: Generator[Any, Any, Any]) -> str: ...
287
+
288
+ CORO_CREATED: str
289
+ CORO_RUNNING: str
290
+ CORO_SUSPENDED: str
291
+ CORO_CLOSED: str
292
+ # TODO can we be more specific than "object"?
293
+ def getcoroutinestate(coroutine: object) -> str: ...
294
+ def getgeneratorlocals(generator: Generator[Any, Any, Any]) -> Dict[str, Any]: ...
295
+
296
+ # TODO can we be more specific than "object"?
297
+ def getcoroutinelocals(coroutine: object) -> Dict[str, Any]: ...
298
+
299
+ # Create private type alias to avoid conflict with symbol of same
300
+ # name created in Attribute class.
301
+ _Object = object
302
+
303
+ class Attribute(NamedTuple):
304
+ name: str
305
+ kind: str
306
+ defining_class: type
307
+ object: _Object
308
+
309
+ def classify_class_attrs(cls: type) -> List[Attribute]: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/io.pyi ADDED
@@ -0,0 +1,186 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import builtins
2
+ import codecs
3
+ import sys
4
+ from _typeshed import ReadableBuffer, WriteableBuffer
5
+ from types import TracebackType
6
+ from typing import IO, Any, BinaryIO, Callable, Iterable, Iterator, List, Optional, TextIO, Tuple, Type, TypeVar, Union
7
+
8
+ DEFAULT_BUFFER_SIZE: int
9
+
10
+ SEEK_SET: int
11
+ SEEK_CUR: int
12
+ SEEK_END: int
13
+
14
+ _T = TypeVar("_T", bound=IOBase)
15
+
16
+ open = builtins.open
17
+
18
+ if sys.version_info >= (3, 8):
19
+ def open_code(path: str) -> IO[bytes]: ...
20
+
21
+ BlockingIOError = builtins.BlockingIOError
22
+
23
+ class UnsupportedOperation(OSError, ValueError): ...
24
+
25
+ class IOBase:
26
+ def __iter__(self) -> Iterator[bytes]: ...
27
+ def __next__(self) -> bytes: ...
28
+ def __enter__(self: _T) -> _T: ...
29
+ def __exit__(
30
+ self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]
31
+ ) -> Optional[bool]: ...
32
+ def close(self) -> None: ...
33
+ def fileno(self) -> int: ...
34
+ def flush(self) -> None: ...
35
+ def isatty(self) -> bool: ...
36
+ def readable(self) -> bool: ...
37
+ def readlines(self, __hint: int = ...) -> List[bytes]: ...
38
+ def seek(self, __offset: int, __whence: int = ...) -> int: ...
39
+ def seekable(self) -> bool: ...
40
+ def tell(self) -> int: ...
41
+ def truncate(self, __size: Optional[int] = ...) -> int: ...
42
+ def writable(self) -> bool: ...
43
+ def writelines(self, __lines: Iterable[ReadableBuffer]) -> None: ...
44
+ def readline(self, __size: Optional[int] = ...) -> bytes: ...
45
+ def __del__(self) -> None: ...
46
+ @property
47
+ def closed(self) -> bool: ...
48
+ def _checkClosed(self, msg: Optional[str] = ...) -> None: ... # undocumented
49
+
50
+ class RawIOBase(IOBase):
51
+ def readall(self) -> bytes: ...
52
+ def readinto(self, __buffer: WriteableBuffer) -> Optional[int]: ...
53
+ def write(self, __b: ReadableBuffer) -> Optional[int]: ...
54
+ def read(self, __size: int = ...) -> Optional[bytes]: ...
55
+
56
+ class BufferedIOBase(IOBase):
57
+ raw: RawIOBase # This is not part of the BufferedIOBase API and may not exist on some implementations.
58
+ def detach(self) -> RawIOBase: ...
59
+ def readinto(self, __buffer: WriteableBuffer) -> int: ...
60
+ def write(self, __buffer: ReadableBuffer) -> int: ...
61
+ def readinto1(self, __buffer: WriteableBuffer) -> int: ...
62
+ def read(self, __size: Optional[int] = ...) -> bytes: ...
63
+ def read1(self, __size: int = ...) -> bytes: ...
64
+
65
+ class FileIO(RawIOBase, BinaryIO):
66
+ mode: str
67
+ # Technically this is whatever is passed in as file, either a str, a bytes, or an int.
68
+ name: Union[int, str] # type: ignore
69
+ def __init__(
70
+ self,
71
+ file: Union[str, bytes, int],
72
+ mode: str = ...,
73
+ closefd: bool = ...,
74
+ opener: Optional[Callable[[Union[int, str], str], int]] = ...,
75
+ ) -> None: ...
76
+ @property
77
+ def closefd(self) -> bool: ...
78
+ def write(self, __b: ReadableBuffer) -> int: ...
79
+ def read(self, __size: int = ...) -> bytes: ...
80
+ def __enter__(self: _T) -> _T: ...
81
+
82
+ class BytesIO(BufferedIOBase, BinaryIO):
83
+ def __init__(self, initial_bytes: bytes = ...) -> None: ...
84
+ # BytesIO does not contain a "name" field. This workaround is necessary
85
+ # to allow BytesIO sub-classes to add this field, as it is defined
86
+ # as a read-only property on IO[].
87
+ name: Any
88
+ def __enter__(self: _T) -> _T: ...
89
+ def getvalue(self) -> bytes: ...
90
+ def getbuffer(self) -> memoryview: ...
91
+ if sys.version_info >= (3, 7):
92
+ def read1(self, __size: Optional[int] = ...) -> bytes: ...
93
+ else:
94
+ def read1(self, __size: Optional[int]) -> bytes: ... # type: ignore
95
+
96
+ class BufferedReader(BufferedIOBase, BinaryIO):
97
+ def __enter__(self: _T) -> _T: ...
98
+ def __init__(self, raw: RawIOBase, buffer_size: int = ...) -> None: ...
99
+ def peek(self, __size: int = ...) -> bytes: ...
100
+ if sys.version_info >= (3, 7):
101
+ def read1(self, __size: int = ...) -> bytes: ...
102
+ else:
103
+ def read1(self, __size: int) -> bytes: ... # type: ignore
104
+
105
+ class BufferedWriter(BufferedIOBase, BinaryIO):
106
+ def __enter__(self: _T) -> _T: ...
107
+ def __init__(self, raw: RawIOBase, buffer_size: int = ...) -> None: ...
108
+ def write(self, __buffer: ReadableBuffer) -> int: ...
109
+
110
+ class BufferedRandom(BufferedReader, BufferedWriter):
111
+ def __enter__(self: _T) -> _T: ...
112
+ def __init__(self, raw: RawIOBase, buffer_size: int = ...) -> None: ...
113
+ def seek(self, __target: int, __whence: int = ...) -> int: ...
114
+ if sys.version_info >= (3, 7):
115
+ def read1(self, __size: int = ...) -> bytes: ...
116
+ else:
117
+ def read1(self, __size: int) -> bytes: ... # type: ignore
118
+
119
+ class BufferedRWPair(BufferedIOBase):
120
+ def __init__(self, reader: RawIOBase, writer: RawIOBase, buffer_size: int = ...) -> None: ...
121
+ def peek(self, __size: int = ...) -> bytes: ...
122
+
123
+ class TextIOBase(IOBase):
124
+ encoding: str
125
+ errors: Optional[str]
126
+ newlines: Union[str, Tuple[str, ...], None]
127
+ def __iter__(self) -> Iterator[str]: ... # type: ignore
128
+ def __next__(self) -> str: ... # type: ignore
129
+ def detach(self) -> BinaryIO: ...
130
+ def write(self, __s: str) -> int: ...
131
+ def writelines(self, __lines: Iterable[str]) -> None: ... # type: ignore
132
+ def readline(self, __size: int = ...) -> str: ... # type: ignore
133
+ def readlines(self, __hint: int = ...) -> List[str]: ... # type: ignore
134
+ def read(self, __size: Optional[int] = ...) -> str: ...
135
+ def tell(self) -> int: ...
136
+
137
+ class TextIOWrapper(TextIOBase, TextIO):
138
+ def __init__(
139
+ self,
140
+ buffer: IO[bytes],
141
+ encoding: Optional[str] = ...,
142
+ errors: Optional[str] = ...,
143
+ newline: Optional[str] = ...,
144
+ line_buffering: bool = ...,
145
+ write_through: bool = ...,
146
+ ) -> None: ...
147
+ @property
148
+ def buffer(self) -> BinaryIO: ...
149
+ @property
150
+ def closed(self) -> bool: ...
151
+ @property
152
+ def line_buffering(self) -> bool: ...
153
+ if sys.version_info >= (3, 7):
154
+ @property
155
+ def write_through(self) -> bool: ...
156
+ def reconfigure(
157
+ self,
158
+ *,
159
+ encoding: Optional[str] = ...,
160
+ errors: Optional[str] = ...,
161
+ newline: Optional[str] = ...,
162
+ line_buffering: Optional[bool] = ...,
163
+ write_through: Optional[bool] = ...,
164
+ ) -> None: ...
165
+ # These are inherited from TextIOBase, but must exist in the stub to satisfy mypy.
166
+ def __enter__(self: _T) -> _T: ...
167
+ def __iter__(self) -> Iterator[str]: ... # type: ignore
168
+ def __next__(self) -> str: ... # type: ignore
169
+ def writelines(self, __lines: Iterable[str]) -> None: ... # type: ignore
170
+ def readline(self, __size: int = ...) -> str: ... # type: ignore
171
+ def readlines(self, __hint: int = ...) -> List[str]: ... # type: ignore
172
+ def seek(self, __cookie: int, __whence: int = ...) -> int: ...
173
+
174
+ class StringIO(TextIOWrapper):
175
+ def __init__(self, initial_value: Optional[str] = ..., newline: Optional[str] = ...) -> None: ...
176
+ # StringIO does not contain a "name" field. This workaround is necessary
177
+ # to allow StringIO sub-classes to add this field, as it is defined
178
+ # as a read-only property on IO[].
179
+ name: Any
180
+ def getvalue(self) -> str: ...
181
+
182
+ class IncrementalNewlineDecoder(codecs.IncrementalDecoder):
183
+ def __init__(self, decoder: Optional[codecs.IncrementalDecoder], translate: bool, errors: str = ...) -> None: ...
184
+ def decode(self, input: Union[bytes, str], final: bool = ...) -> str: ...
185
+ @property
186
+ def newlines(self) -> Optional[Union[str, Tuple[str, ...]]]: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/lzma.pyi ADDED
@@ -0,0 +1,164 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import io
2
+ from _typeshed import AnyPath, ReadableBuffer
3
+ from typing import IO, Any, Mapping, Optional, Sequence, TextIO, TypeVar, Union, overload
4
+ from typing_extensions import Literal
5
+
6
+ _OpenBinaryWritingMode = Literal["w", "wb", "x", "xb", "a", "ab"]
7
+ _OpenTextWritingMode = Literal["wt", "xt", "at"]
8
+
9
+ _PathOrFile = Union[AnyPath, IO[bytes]]
10
+
11
+ _FilterChain = Sequence[Mapping[str, Any]]
12
+ _T = TypeVar("_T")
13
+
14
+ FORMAT_AUTO: int
15
+ FORMAT_XZ: int
16
+ FORMAT_ALONE: int
17
+ FORMAT_RAW: int
18
+ CHECK_NONE: int
19
+ CHECK_CRC32: int
20
+ CHECK_CRC64: int
21
+ CHECK_SHA256: int
22
+ CHECK_ID_MAX: int
23
+ CHECK_UNKNOWN: int
24
+ FILTER_LZMA1: int
25
+ FILTER_LZMA2: int
26
+ FILTER_DELTA: int
27
+ FILTER_X86: int
28
+ FILTER_IA64: int
29
+ FILTER_ARM: int
30
+ FILTER_ARMTHUMB: int
31
+ FILTER_SPARC: int
32
+ FILTER_POWERPC: int
33
+ MF_HC3: int
34
+ MF_HC4: int
35
+ MF_BT2: int
36
+ MF_BT3: int
37
+ MF_BT4: int
38
+ MODE_FAST: int
39
+ MODE_NORMAL: int
40
+ PRESET_DEFAULT: int
41
+ PRESET_EXTREME: int
42
+
43
+ # from _lzma.c
44
+ class LZMADecompressor(object):
45
+ def __init__(
46
+ self, format: Optional[int] = ..., memlimit: Optional[int] = ..., filters: Optional[_FilterChain] = ...
47
+ ) -> None: ...
48
+ def decompress(self, data: bytes, max_length: int = ...) -> bytes: ...
49
+ @property
50
+ def check(self) -> int: ...
51
+ @property
52
+ def eof(self) -> bool: ...
53
+ @property
54
+ def unused_data(self) -> bytes: ...
55
+ @property
56
+ def needs_input(self) -> bool: ...
57
+
58
+ # from _lzma.c
59
+ class LZMACompressor(object):
60
+ def __init__(
61
+ self, format: Optional[int] = ..., check: int = ..., preset: Optional[int] = ..., filters: Optional[_FilterChain] = ...
62
+ ) -> None: ...
63
+ def compress(self, data: bytes) -> bytes: ...
64
+ def flush(self) -> bytes: ...
65
+
66
+ class LZMAError(Exception): ...
67
+
68
+ class LZMAFile(io.BufferedIOBase, IO[bytes]):
69
+ def __init__(
70
+ self,
71
+ filename: Optional[_PathOrFile] = ...,
72
+ mode: str = ...,
73
+ *,
74
+ format: Optional[int] = ...,
75
+ check: int = ...,
76
+ preset: Optional[int] = ...,
77
+ filters: Optional[_FilterChain] = ...,
78
+ ) -> None: ...
79
+ def __enter__(self: _T) -> _T: ...
80
+ def close(self) -> None: ...
81
+ @property
82
+ def closed(self) -> bool: ...
83
+ def fileno(self) -> int: ...
84
+ def seekable(self) -> bool: ...
85
+ def readable(self) -> bool: ...
86
+ def writable(self) -> bool: ...
87
+ def peek(self, size: int = ...) -> bytes: ...
88
+ def read(self, size: Optional[int] = ...) -> bytes: ...
89
+ def read1(self, size: int = ...) -> bytes: ...
90
+ def readline(self, size: Optional[int] = ...) -> bytes: ...
91
+ def write(self, data: ReadableBuffer) -> int: ...
92
+ def seek(self, offset: int, whence: int = ...) -> int: ...
93
+ def tell(self) -> int: ...
94
+
95
+ @overload
96
+ def open(
97
+ filename: _PathOrFile,
98
+ mode: Literal["r", "rb"] = ...,
99
+ *,
100
+ format: Optional[int] = ...,
101
+ check: Literal[-1] = ...,
102
+ preset: None = ...,
103
+ filters: Optional[_FilterChain] = ...,
104
+ encoding: None = ...,
105
+ errors: None = ...,
106
+ newline: None = ...,
107
+ ) -> LZMAFile: ...
108
+ @overload
109
+ def open(
110
+ filename: _PathOrFile,
111
+ mode: _OpenBinaryWritingMode,
112
+ *,
113
+ format: Optional[int] = ...,
114
+ check: int = ...,
115
+ preset: Optional[int] = ...,
116
+ filters: Optional[_FilterChain] = ...,
117
+ encoding: None = ...,
118
+ errors: None = ...,
119
+ newline: None = ...,
120
+ ) -> LZMAFile: ...
121
+ @overload
122
+ def open(
123
+ filename: AnyPath,
124
+ mode: Literal["rt"],
125
+ *,
126
+ format: Optional[int] = ...,
127
+ check: Literal[-1] = ...,
128
+ preset: None = ...,
129
+ filters: Optional[_FilterChain] = ...,
130
+ encoding: Optional[str] = ...,
131
+ errors: Optional[str] = ...,
132
+ newline: Optional[str] = ...,
133
+ ) -> TextIO: ...
134
+ @overload
135
+ def open(
136
+ filename: AnyPath,
137
+ mode: _OpenTextWritingMode,
138
+ *,
139
+ format: Optional[int] = ...,
140
+ check: int = ...,
141
+ preset: Optional[int] = ...,
142
+ filters: Optional[_FilterChain] = ...,
143
+ encoding: Optional[str] = ...,
144
+ errors: Optional[str] = ...,
145
+ newline: Optional[str] = ...,
146
+ ) -> TextIO: ...
147
+ @overload
148
+ def open(
149
+ filename: _PathOrFile,
150
+ mode: str,
151
+ *,
152
+ format: Optional[int] = ...,
153
+ check: int = ...,
154
+ preset: Optional[int] = ...,
155
+ filters: Optional[_FilterChain] = ...,
156
+ encoding: Optional[str] = ...,
157
+ errors: Optional[str] = ...,
158
+ newline: Optional[str] = ...,
159
+ ) -> Union[LZMAFile, TextIO]: ...
160
+ def compress(
161
+ data: bytes, format: int = ..., check: int = ..., preset: Optional[int] = ..., filters: Optional[_FilterChain] = ...
162
+ ) -> bytes: ...
163
+ def decompress(data: bytes, format: int = ..., memlimit: Optional[int] = ..., filters: Optional[_FilterChain] = ...) -> bytes: ...
164
+ def is_check_supported(check: int) -> bool: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/macurl2path.pyi ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from typing import Union
3
+
4
+ if sys.version_info < (3, 7):
5
+ def url2pathname(pathname: str) -> str: ...
6
+ def pathname2url(pathname: str) -> str: ...
7
+ def _pncomp2url(component: Union[str, bytes]) -> str: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/ntpath.pyi ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import sys
3
+ from _typeshed import AnyPath, BytesPath, StrPath
4
+ from genericpath import exists as exists
5
+ from typing import Any, AnyStr, Optional, Sequence, Tuple, TypeVar, overload
6
+
7
+ _T = TypeVar("_T")
8
+
9
+ if sys.version_info >= (3, 6):
10
+ from builtins import _PathLike
11
+
12
+ # ----- os.path variables -----
13
+ supports_unicode_filenames: bool
14
+ # aliases (also in os)
15
+ curdir: str
16
+ pardir: str
17
+ sep: str
18
+ if sys.platform == "win32":
19
+ altsep: str
20
+ else:
21
+ altsep: Optional[str]
22
+ extsep: str
23
+ pathsep: str
24
+ defpath: str
25
+ devnull: str
26
+
27
+ # ----- os.path function stubs -----
28
+ if sys.version_info >= (3, 6):
29
+ # Overloads are necessary to work around python/mypy#3644.
30
+ @overload
31
+ def abspath(path: _PathLike[AnyStr]) -> AnyStr: ...
32
+ @overload
33
+ def abspath(path: AnyStr) -> AnyStr: ...
34
+ @overload
35
+ def basename(p: _PathLike[AnyStr]) -> AnyStr: ...
36
+ @overload
37
+ def basename(p: AnyStr) -> AnyStr: ...
38
+ @overload
39
+ def dirname(p: _PathLike[AnyStr]) -> AnyStr: ...
40
+ @overload
41
+ def dirname(p: AnyStr) -> AnyStr: ...
42
+ @overload
43
+ def expanduser(path: _PathLike[AnyStr]) -> AnyStr: ...
44
+ @overload
45
+ def expanduser(path: AnyStr) -> AnyStr: ...
46
+ @overload
47
+ def expandvars(path: _PathLike[AnyStr]) -> AnyStr: ...
48
+ @overload
49
+ def expandvars(path: AnyStr) -> AnyStr: ...
50
+ @overload
51
+ def normcase(s: _PathLike[AnyStr]) -> AnyStr: ...
52
+ @overload
53
+ def normcase(s: AnyStr) -> AnyStr: ...
54
+ @overload
55
+ def normpath(path: _PathLike[AnyStr]) -> AnyStr: ...
56
+ @overload
57
+ def normpath(path: AnyStr) -> AnyStr: ...
58
+ if sys.platform == "win32":
59
+ @overload
60
+ def realpath(path: _PathLike[AnyStr]) -> AnyStr: ...
61
+ @overload
62
+ def realpath(path: AnyStr) -> AnyStr: ...
63
+ else:
64
+ @overload
65
+ def realpath(filename: _PathLike[AnyStr]) -> AnyStr: ...
66
+ @overload
67
+ def realpath(filename: AnyStr) -> AnyStr: ...
68
+
69
+ else:
70
+ def abspath(path: AnyStr) -> AnyStr: ...
71
+ def basename(p: AnyStr) -> AnyStr: ...
72
+ def dirname(p: AnyStr) -> AnyStr: ...
73
+ def expanduser(path: AnyStr) -> AnyStr: ...
74
+ def expandvars(path: AnyStr) -> AnyStr: ...
75
+ def normcase(s: AnyStr) -> AnyStr: ...
76
+ def normpath(path: AnyStr) -> AnyStr: ...
77
+ if sys.platform == "win32":
78
+ def realpath(path: AnyStr) -> AnyStr: ...
79
+ else:
80
+ def realpath(filename: AnyStr) -> AnyStr: ...
81
+
82
+ if sys.version_info >= (3, 6):
83
+ # In reality it returns str for sequences of StrPath and bytes for sequences
84
+ # of BytesPath, but mypy does not accept such a signature.
85
+ def commonpath(paths: Sequence[AnyPath]) -> Any: ...
86
+
87
+ elif sys.version_info >= (3, 5):
88
+ def commonpath(paths: Sequence[AnyStr]) -> AnyStr: ...
89
+
90
+ # NOTE: Empty lists results in '' (str) regardless of contained type.
91
+ # So, fall back to Any
92
+ def commonprefix(m: Sequence[AnyPath]) -> Any: ...
93
+ def lexists(path: AnyPath) -> bool: ...
94
+
95
+ # These return float if os.stat_float_times() == True,
96
+ # but int is a subclass of float.
97
+ def getatime(filename: AnyPath) -> float: ...
98
+ def getmtime(filename: AnyPath) -> float: ...
99
+ def getctime(filename: AnyPath) -> float: ...
100
+ def getsize(filename: AnyPath) -> int: ...
101
+ def isabs(s: AnyPath) -> bool: ...
102
+ def isfile(path: AnyPath) -> bool: ...
103
+ def isdir(s: AnyPath) -> bool: ...
104
+ def islink(path: AnyPath) -> bool: ...
105
+ def ismount(path: AnyPath) -> bool: ...
106
+
107
+ if sys.version_info >= (3, 6):
108
+ @overload
109
+ def join(a: StrPath, *paths: StrPath) -> str: ...
110
+ @overload
111
+ def join(a: BytesPath, *paths: BytesPath) -> bytes: ...
112
+
113
+ else:
114
+ def join(a: AnyStr, *paths: AnyStr) -> AnyStr: ...
115
+
116
+ @overload
117
+ def relpath(path: BytesPath, start: Optional[BytesPath] = ...) -> bytes: ...
118
+ @overload
119
+ def relpath(path: StrPath, start: Optional[StrPath] = ...) -> str: ...
120
+ def samefile(f1: AnyPath, f2: AnyPath) -> bool: ...
121
+ def sameopenfile(fp1: int, fp2: int) -> bool: ...
122
+ def samestat(s1: os.stat_result, s2: os.stat_result) -> bool: ...
123
+
124
+ if sys.version_info >= (3, 6):
125
+ @overload
126
+ def split(p: _PathLike[AnyStr]) -> Tuple[AnyStr, AnyStr]: ...
127
+ @overload
128
+ def split(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
129
+ @overload
130
+ def splitdrive(p: _PathLike[AnyStr]) -> Tuple[AnyStr, AnyStr]: ...
131
+ @overload
132
+ def splitdrive(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
133
+ @overload
134
+ def splitext(p: _PathLike[AnyStr]) -> Tuple[AnyStr, AnyStr]: ...
135
+ @overload
136
+ def splitext(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
137
+
138
+ else:
139
+ def split(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
140
+ def splitdrive(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
141
+ def splitext(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
142
+
143
+ if sys.version_info < (3, 7) and sys.platform == "win32":
144
+ def splitunc(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ... # deprecated
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/nturl2path.pyi ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ def url2pathname(url: str) -> str: ...
2
+ def pathname2url(p: str) -> str: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/pathlib.pyi ADDED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import sys
3
+ from _typeshed import OpenBinaryMode, OpenBinaryModeReading, OpenBinaryModeUpdating, OpenBinaryModeWriting, OpenTextMode
4
+ from io import BufferedRandom, BufferedReader, BufferedWriter, FileIO, TextIOWrapper
5
+ from types import TracebackType
6
+ from typing import IO, Any, BinaryIO, Generator, List, Optional, Sequence, Tuple, Type, TypeVar, Union, overload
7
+ from typing_extensions import Literal
8
+
9
+ if sys.version_info >= (3, 9):
10
+ from types import GenericAlias
11
+
12
+ _P = TypeVar("_P", bound=PurePath)
13
+
14
+ if sys.version_info >= (3, 6):
15
+ _PurePathBase = os.PathLike[str]
16
+ _PathLike = os.PathLike[str]
17
+ else:
18
+ _PurePathBase = object
19
+ _PathLike = PurePath
20
+
21
+ class PurePath(_PurePathBase):
22
+ parts: Tuple[str, ...]
23
+ drive: str
24
+ root: str
25
+ anchor: str
26
+ name: str
27
+ suffix: str
28
+ suffixes: List[str]
29
+ stem: str
30
+ def __new__(cls: Type[_P], *args: Union[str, _PathLike]) -> _P: ...
31
+ def __hash__(self) -> int: ...
32
+ def __lt__(self, other: PurePath) -> bool: ...
33
+ def __le__(self, other: PurePath) -> bool: ...
34
+ def __gt__(self, other: PurePath) -> bool: ...
35
+ def __ge__(self, other: PurePath) -> bool: ...
36
+ def __truediv__(self: _P, key: Union[str, _PathLike]) -> _P: ...
37
+ def __rtruediv__(self: _P, key: Union[str, _PathLike]) -> _P: ...
38
+ def __bytes__(self) -> bytes: ...
39
+ def as_posix(self) -> str: ...
40
+ def as_uri(self) -> str: ...
41
+ def is_absolute(self) -> bool: ...
42
+ def is_reserved(self) -> bool: ...
43
+ if sys.version_info >= (3, 9):
44
+ def is_relative_to(self, *other: Union[str, os.PathLike[str]]) -> bool: ...
45
+ def match(self, path_pattern: str) -> bool: ...
46
+ def relative_to(self: _P, *other: Union[str, _PathLike]) -> _P: ...
47
+ def with_name(self: _P, name: str) -> _P: ...
48
+ if sys.version_info >= (3, 9):
49
+ def with_stem(self: _P, stem: str) -> _P: ...
50
+ def with_suffix(self: _P, suffix: str) -> _P: ...
51
+ def joinpath(self: _P, *other: Union[str, _PathLike]) -> _P: ...
52
+ @property
53
+ def parents(self: _P) -> Sequence[_P]: ...
54
+ @property
55
+ def parent(self: _P) -> _P: ...
56
+ if sys.version_info >= (3, 9):
57
+ def __class_getitem__(cls, type: Any) -> GenericAlias: ...
58
+
59
+ class PurePosixPath(PurePath): ...
60
+ class PureWindowsPath(PurePath): ...
61
+
62
+ class Path(PurePath):
63
+ def __new__(cls: Type[_P], *args: Union[str, _PathLike], **kwargs: Any) -> _P: ...
64
+ def __enter__(self: _P) -> _P: ...
65
+ def __exit__(
66
+ self, exc_type: Optional[Type[BaseException]], exc_value: Optional[BaseException], traceback: Optional[TracebackType]
67
+ ) -> Optional[bool]: ...
68
+ @classmethod
69
+ def cwd(cls: Type[_P]) -> _P: ...
70
+ def stat(self) -> os.stat_result: ...
71
+ def chmod(self, mode: int) -> None: ...
72
+ def exists(self) -> bool: ...
73
+ def glob(self: _P, pattern: str) -> Generator[_P, None, None]: ...
74
+ def group(self) -> str: ...
75
+ def is_dir(self) -> bool: ...
76
+ def is_file(self) -> bool: ...
77
+ if sys.version_info >= (3, 7):
78
+ def is_mount(self) -> bool: ...
79
+ def is_symlink(self) -> bool: ...
80
+ def is_socket(self) -> bool: ...
81
+ def is_fifo(self) -> bool: ...
82
+ def is_block_device(self) -> bool: ...
83
+ def is_char_device(self) -> bool: ...
84
+ def iterdir(self: _P) -> Generator[_P, None, None]: ...
85
+ def lchmod(self, mode: int) -> None: ...
86
+ def lstat(self) -> os.stat_result: ...
87
+ def mkdir(self, mode: int = ..., parents: bool = ..., exist_ok: bool = ...) -> None: ...
88
+ # Adapted from builtins.open
89
+ # Text mode: always returns a TextIOWrapper
90
+ @overload
91
+ def open(
92
+ self,
93
+ mode: OpenTextMode = ...,
94
+ buffering: int = ...,
95
+ encoding: Optional[str] = ...,
96
+ errors: Optional[str] = ...,
97
+ newline: Optional[str] = ...,
98
+ ) -> TextIOWrapper: ...
99
+ # Unbuffered binary mode: returns a FileIO
100
+ @overload
101
+ def open(
102
+ self, mode: OpenBinaryMode, buffering: Literal[0], encoding: None = ..., errors: None = ..., newline: None = ...
103
+ ) -> FileIO: ...
104
+ # Buffering is on: return BufferedRandom, BufferedReader, or BufferedWriter
105
+ @overload
106
+ def open(
107
+ self,
108
+ mode: OpenBinaryModeUpdating,
109
+ buffering: Literal[-1, 1] = ...,
110
+ encoding: None = ...,
111
+ errors: None = ...,
112
+ newline: None = ...,
113
+ ) -> BufferedRandom: ...
114
+ @overload
115
+ def open(
116
+ self,
117
+ mode: OpenBinaryModeWriting,
118
+ buffering: Literal[-1, 1] = ...,
119
+ encoding: None = ...,
120
+ errors: None = ...,
121
+ newline: None = ...,
122
+ ) -> BufferedWriter: ...
123
+ @overload
124
+ def open(
125
+ self,
126
+ mode: OpenBinaryModeReading,
127
+ buffering: Literal[-1, 1] = ...,
128
+ encoding: None = ...,
129
+ errors: None = ...,
130
+ newline: None = ...,
131
+ ) -> BufferedReader: ...
132
+ # Buffering cannot be determined: fall back to BinaryIO
133
+ @overload
134
+ def open(
135
+ self, mode: OpenBinaryMode, buffering: int, encoding: None = ..., errors: None = ..., newline: None = ...
136
+ ) -> BinaryIO: ...
137
+ # Fallback if mode is not specified
138
+ @overload
139
+ def open(
140
+ self,
141
+ mode: str,
142
+ buffering: int = ...,
143
+ encoding: Optional[str] = ...,
144
+ errors: Optional[str] = ...,
145
+ newline: Optional[str] = ...,
146
+ ) -> IO[Any]: ...
147
+ def owner(self) -> str: ...
148
+ if sys.version_info >= (3, 9):
149
+ def readlink(self: _P) -> _P: ...
150
+ if sys.version_info >= (3, 8):
151
+ def rename(self: _P, target: Union[str, PurePath]) -> _P: ...
152
+ def replace(self: _P, target: Union[str, PurePath]) -> _P: ...
153
+ else:
154
+ def rename(self, target: Union[str, PurePath]) -> None: ...
155
+ def replace(self, target: Union[str, PurePath]) -> None: ...
156
+ def resolve(self: _P, strict: bool = ...) -> _P: ...
157
+ def rglob(self: _P, pattern: str) -> Generator[_P, None, None]: ...
158
+ def rmdir(self) -> None: ...
159
+ def symlink_to(self, target: Union[str, Path], target_is_directory: bool = ...) -> None: ...
160
+ def touch(self, mode: int = ..., exist_ok: bool = ...) -> None: ...
161
+ if sys.version_info >= (3, 8):
162
+ def unlink(self, missing_ok: bool = ...) -> None: ...
163
+ else:
164
+ def unlink(self) -> None: ...
165
+ @classmethod
166
+ def home(cls: Type[_P]) -> _P: ...
167
+ def absolute(self: _P) -> _P: ...
168
+ def expanduser(self: _P) -> _P: ...
169
+ def read_bytes(self) -> bytes: ...
170
+ def read_text(self, encoding: Optional[str] = ..., errors: Optional[str] = ...) -> str: ...
171
+ def samefile(self, other_path: Union[str, bytes, int, Path]) -> bool: ...
172
+ def write_bytes(self, data: bytes) -> int: ...
173
+ def write_text(self, data: str, encoding: Optional[str] = ..., errors: Optional[str] = ...) -> int: ...
174
+ if sys.version_info >= (3, 8):
175
+ def link_to(self, target: Union[str, bytes, os.PathLike[str]]) -> None: ...
176
+
177
+ class PosixPath(Path, PurePosixPath): ...
178
+ class WindowsPath(Path, PureWindowsPath): ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/pipes.pyi ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+
3
+ class Template:
4
+ def __init__(self) -> None: ...
5
+ def reset(self) -> None: ...
6
+ def clone(self) -> Template: ...
7
+ def debug(self, flag: bool) -> None: ...
8
+ def append(self, cmd: str, kind: str) -> None: ...
9
+ def prepend(self, cmd: str, kind: str) -> None: ...
10
+ def open(self, file: str, rw: str) -> os._wrap_close: ...
11
+ def copy(self, file: str, rw: str) -> os._wrap_close: ...
12
+
13
+ # Not documented, but widely used.
14
+ # Documented as shlex.quote since 3.3.
15
+ def quote(s: str) -> str: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/platform.pyi ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+
3
+ if sys.version_info < (3, 9):
4
+ import os
5
+
6
+ DEV_NULL = os.devnull
7
+ from typing import NamedTuple, Optional, Tuple
8
+
9
+ if sys.version_info >= (3, 8):
10
+ def libc_ver(
11
+ executable: Optional[str] = ..., lib: str = ..., version: str = ..., chunksize: int = ...
12
+ ) -> Tuple[str, str]: ...
13
+
14
+ else:
15
+ def libc_ver(executable: str = ..., lib: str = ..., version: str = ..., chunksize: int = ...) -> Tuple[str, str]: ...
16
+
17
+ if sys.version_info < (3, 8):
18
+ def linux_distribution(
19
+ distname: str = ...,
20
+ version: str = ...,
21
+ id: str = ...,
22
+ supported_dists: Tuple[str, ...] = ...,
23
+ full_distribution_name: bool = ...,
24
+ ) -> Tuple[str, str, str]: ...
25
+ def dist(
26
+ distname: str = ..., version: str = ..., id: str = ..., supported_dists: Tuple[str, ...] = ...
27
+ ) -> Tuple[str, str, str]: ...
28
+
29
+ def win32_ver(release: str = ..., version: str = ..., csd: str = ..., ptype: str = ...) -> Tuple[str, str, str, str]: ...
30
+
31
+ if sys.version_info >= (3, 8):
32
+ def win32_edition() -> str: ...
33
+ def win32_is_iot() -> bool: ...
34
+
35
+ def mac_ver(
36
+ release: str = ..., versioninfo: Tuple[str, str, str] = ..., machine: str = ...
37
+ ) -> Tuple[str, Tuple[str, str, str], str]: ...
38
+ def java_ver(
39
+ release: str = ..., vendor: str = ..., vminfo: Tuple[str, str, str] = ..., osinfo: Tuple[str, str, str] = ...
40
+ ) -> Tuple[str, str, Tuple[str, str, str], Tuple[str, str, str]]: ...
41
+ def system_alias(system: str, release: str, version: str) -> Tuple[str, str, str]: ...
42
+ def architecture(executable: str = ..., bits: str = ..., linkage: str = ...) -> Tuple[str, str]: ...
43
+
44
+ class uname_result(NamedTuple):
45
+ system: str
46
+ node: str
47
+ release: str
48
+ version: str
49
+ machine: str
50
+ processor: str
51
+
52
+ def uname() -> uname_result: ...
53
+ def system() -> str: ...
54
+ def node() -> str: ...
55
+ def release() -> str: ...
56
+ def version() -> str: ...
57
+ def machine() -> str: ...
58
+ def processor() -> str: ...
59
+ def python_implementation() -> str: ...
60
+ def python_version() -> str: ...
61
+ def python_version_tuple() -> Tuple[str, str, str]: ...
62
+ def python_branch() -> str: ...
63
+ def python_revision() -> str: ...
64
+ def python_build() -> Tuple[str, str]: ...
65
+ def python_compiler() -> str: ...
66
+ def platform(aliased: bool = ..., terse: bool = ...) -> str: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/posix.pyi ADDED
@@ -0,0 +1,165 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from builtins import _PathLike # See comment in builtins
3
+ from os import stat_result as stat_result
4
+ from typing import Dict, List, NamedTuple, Optional, overload
5
+
6
+ class uname_result(NamedTuple):
7
+ sysname: str
8
+ nodename: str
9
+ release: str
10
+ version: str
11
+ machine: str
12
+
13
+ class times_result(NamedTuple):
14
+ user: float
15
+ system: float
16
+ children_user: float
17
+ children_system: float
18
+ elapsed: float
19
+
20
+ class waitid_result(NamedTuple):
21
+ si_pid: int
22
+ si_uid: int
23
+ si_signo: int
24
+ si_status: int
25
+ si_code: int
26
+
27
+ class sched_param(NamedTuple):
28
+ sched_priority: int
29
+
30
+ CLD_CONTINUED: int
31
+ CLD_DUMPED: int
32
+ CLD_EXITED: int
33
+ CLD_TRAPPED: int
34
+
35
+ EX_CANTCREAT: int
36
+ EX_CONFIG: int
37
+ EX_DATAERR: int
38
+ EX_IOERR: int
39
+ EX_NOHOST: int
40
+ EX_NOINPUT: int
41
+ EX_NOPERM: int
42
+ EX_NOTFOUND: int
43
+ EX_NOUSER: int
44
+ EX_OK: int
45
+ EX_OSERR: int
46
+ EX_OSFILE: int
47
+ EX_PROTOCOL: int
48
+ EX_SOFTWARE: int
49
+ EX_TEMPFAIL: int
50
+ EX_UNAVAILABLE: int
51
+ EX_USAGE: int
52
+
53
+ F_OK: int
54
+ R_OK: int
55
+ W_OK: int
56
+ X_OK: int
57
+
58
+ F_LOCK: int
59
+ F_TEST: int
60
+ F_TLOCK: int
61
+ F_ULOCK: int
62
+
63
+ GRND_NONBLOCK: int
64
+ GRND_RANDOM: int
65
+ NGROUPS_MAX: int
66
+
67
+ O_APPEND: int
68
+ O_ACCMODE: int
69
+ O_ASYNC: int
70
+ O_CREAT: int
71
+ O_DIRECT: int
72
+ O_DIRECTORY: int
73
+ O_DSYNC: int
74
+ O_EXCL: int
75
+ O_LARGEFILE: int
76
+ O_NDELAY: int
77
+ O_NOATIME: int
78
+ O_NOCTTY: int
79
+ O_NOFOLLOW: int
80
+ O_NONBLOCK: int
81
+ O_RDONLY: int
82
+ O_RDWR: int
83
+ O_RSYNC: int
84
+ O_SYNC: int
85
+ O_TRUNC: int
86
+ O_WRONLY: int
87
+
88
+ POSIX_FADV_DONTNEED: int
89
+ POSIX_FADV_NOREUSE: int
90
+ POSIX_FADV_NORMAL: int
91
+ POSIX_FADV_RANDOM: int
92
+ POSIX_FADV_SEQUENTIAL: int
93
+ POSIX_FADV_WILLNEED: int
94
+
95
+ PRIO_PGRP: int
96
+ PRIO_PROCESS: int
97
+ PRIO_USER: int
98
+
99
+ P_ALL: int
100
+ P_PGID: int
101
+ P_PID: int
102
+
103
+ RTLD_DEEPBIND: int
104
+ RTLD_GLOBAL: int
105
+ RTLD_LAZY: int
106
+ RTLD_LOCAL: int
107
+ RTLD_NODELETE: int
108
+ RTLD_NOLOAD: int
109
+ RTLD_NOW: int
110
+
111
+ SCHED_BATCH: int
112
+ SCHED_FIFO: int
113
+ SCHED_IDLE: int
114
+ SCHED_OTHER: int
115
+ SCHED_RESET_ON_FORK: int
116
+ SCHED_RR: int
117
+
118
+ SEEK_DATA: int
119
+ SEEK_HOLE: int
120
+
121
+ ST_APPEND: int
122
+ ST_MANDLOCK: int
123
+ ST_NOATIME: int
124
+ ST_NODEV: int
125
+ ST_NODIRATIME: int
126
+ ST_NOEXEC: int
127
+ ST_NOSUID: int
128
+ ST_RDONLY: int
129
+ ST_RELATIME: int
130
+ ST_SYNCHRONOUS: int
131
+ ST_WRITE: int
132
+
133
+ TMP_MAX: int
134
+ WCONTINUED: int
135
+
136
+ def WCOREDUMP(__status: int) -> bool: ...
137
+ def WEXITSTATUS(status: int) -> int: ...
138
+ def WIFCONTINUED(status: int) -> bool: ...
139
+ def WIFEXITED(status: int) -> bool: ...
140
+ def WIFSIGNALED(status: int) -> bool: ...
141
+ def WIFSTOPPED(status: int) -> bool: ...
142
+
143
+ WNOHANG: int
144
+
145
+ def WSTOPSIG(status: int) -> int: ...
146
+ def WTERMSIG(status: int) -> int: ...
147
+
148
+ WUNTRACED: int
149
+
150
+ XATTR_CREATE: int
151
+ XATTR_REPLACE: int
152
+ XATTR_SIZE_MAX: int
153
+ @overload
154
+ def listdir(path: Optional[str] = ...) -> List[str]: ...
155
+ @overload
156
+ def listdir(path: bytes) -> List[bytes]: ...
157
+ @overload
158
+ def listdir(path: int) -> List[str]: ...
159
+ @overload
160
+ def listdir(path: _PathLike[str]) -> List[str]: ...
161
+
162
+ if sys.platform == "win32":
163
+ environ: Dict[str, str]
164
+ else:
165
+ environ: Dict[bytes, bytes]
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/queue.pyi ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from threading import Condition, Lock
3
+ from typing import Any, Generic, Optional, TypeVar
4
+
5
+ if sys.version_info >= (3, 9):
6
+ from types import GenericAlias
7
+
8
+ _T = TypeVar("_T")
9
+
10
+ class Empty(Exception): ...
11
+ class Full(Exception): ...
12
+
13
+ class Queue(Generic[_T]):
14
+ maxsize: int
15
+
16
+ mutex: Lock # undocumented
17
+ not_empty: Condition # undocumented
18
+ not_full: Condition # undocumented
19
+ all_tasks_done: Condition # undocumented
20
+ unfinished_tasks: int # undocumented
21
+ queue: Any # undocumented
22
+ def __init__(self, maxsize: int = ...) -> None: ...
23
+ def _init(self, maxsize: int) -> None: ...
24
+ def empty(self) -> bool: ...
25
+ def full(self) -> bool: ...
26
+ def get(self, block: bool = ..., timeout: Optional[float] = ...) -> _T: ...
27
+ def get_nowait(self) -> _T: ...
28
+ def _get(self) -> _T: ...
29
+ def put(self, item: _T, block: bool = ..., timeout: Optional[float] = ...) -> None: ...
30
+ def put_nowait(self, item: _T) -> None: ...
31
+ def _put(self, item: _T) -> None: ...
32
+ def join(self) -> None: ...
33
+ def qsize(self) -> int: ...
34
+ def _qsize(self) -> int: ...
35
+ def task_done(self) -> None: ...
36
+ if sys.version_info >= (3, 9):
37
+ def __class_getitem__(cls, item: Any) -> GenericAlias: ...
38
+
39
+ class PriorityQueue(Queue[_T]): ...
40
+ class LifoQueue(Queue[_T]): ...
41
+
42
+ if sys.version_info >= (3, 7):
43
+ class SimpleQueue(Generic[_T]):
44
+ def __init__(self) -> None: ...
45
+ def empty(self) -> bool: ...
46
+ def get(self, block: bool = ..., timeout: Optional[float] = ...) -> _T: ...
47
+ def get_nowait(self) -> _T: ...
48
+ def put(self, item: _T, block: bool = ..., timeout: Optional[float] = ...) -> None: ...
49
+ def put_nowait(self, item: _T) -> None: ...
50
+ def qsize(self) -> int: ...
51
+ if sys.version_info >= (3, 9):
52
+ def __class_getitem__(cls, item: Any) -> GenericAlias: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/reprlib.pyi ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from array import array
2
+ from typing import Any, Callable, Deque, Dict, FrozenSet, List, Set, Tuple
3
+
4
+ _ReprFunc = Callable[[Any], str]
5
+
6
+ def recursive_repr(fillvalue: str = ...) -> Callable[[_ReprFunc], _ReprFunc]: ...
7
+
8
+ class Repr:
9
+ maxlevel: int
10
+ maxdict: int
11
+ maxlist: int
12
+ maxtuple: int
13
+ maxset: int
14
+ maxfrozenset: int
15
+ maxdeque: int
16
+ maxarray: int
17
+ maxlong: int
18
+ maxstring: int
19
+ maxother: int
20
+ def __init__(self) -> None: ...
21
+ def repr(self, x: Any) -> str: ...
22
+ def repr1(self, x: Any, level: int) -> str: ...
23
+ def repr_tuple(self, x: Tuple[Any, ...], level: int) -> str: ...
24
+ def repr_list(self, x: List[Any], level: int) -> str: ...
25
+ def repr_array(self, x: array[Any], level: int) -> str: ...
26
+ def repr_set(self, x: Set[Any], level: int) -> str: ...
27
+ def repr_frozenset(self, x: FrozenSet[Any], level: int) -> str: ...
28
+ def repr_deque(self, x: Deque[Any], level: int) -> str: ...
29
+ def repr_dict(self, x: Dict[Any, Any], level: int) -> str: ...
30
+ def repr_str(self, x: str, level: int) -> str: ...
31
+ def repr_int(self, x: int, level: int) -> str: ...
32
+ def repr_instance(self, x: Any, level: int) -> str: ...
33
+
34
+ aRepr: Repr
35
+
36
+ def repr(x: object) -> str: ...
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/resource.pyi ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from typing import NamedTuple, Tuple, overload
3
+
4
+ RLIMIT_AS: int
5
+ RLIMIT_CORE: int
6
+ RLIMIT_CPU: int
7
+ RLIMIT_DATA: int
8
+ RLIMIT_FSIZE: int
9
+ RLIMIT_MEMLOCK: int
10
+ RLIMIT_NOFILE: int
11
+ RLIMIT_NPROC: int
12
+ RLIMIT_RSS: int
13
+ RLIMIT_STACK: int
14
+ RLIM_INFINITY: int
15
+ RUSAGE_CHILDREN: int
16
+ RUSAGE_SELF: int
17
+ if sys.platform == "linux":
18
+ RLIMIT_MSGQUEUE: int
19
+ RLIMIT_NICE: int
20
+ RLIMIT_OFILE: int
21
+ RLIMIT_RTPRIO: int
22
+ RLIMIT_RTTIME: int
23
+ RLIMIT_SIGPENDING: int
24
+ RUSAGE_THREAD: int
25
+
26
+ class _RUsage(NamedTuple):
27
+ ru_utime: float
28
+ ru_stime: float
29
+ ru_maxrss: int
30
+ ru_ixrss: int
31
+ ru_idrss: int
32
+ ru_isrss: int
33
+ ru_minflt: int
34
+ ru_majflt: int
35
+ ru_nswap: int
36
+ ru_inblock: int
37
+ ru_oublock: int
38
+ ru_msgsnd: int
39
+ ru_msgrcv: int
40
+ ru_nsignals: int
41
+ ru_nvcsw: int
42
+ ru_nivcsw: int
43
+
44
+ def getpagesize() -> int: ...
45
+ def getrlimit(__resource: int) -> Tuple[int, int]: ...
46
+ def getrusage(__who: int) -> _RUsage: ...
47
+ def setrlimit(__resource: int, __limits: Tuple[int, int]) -> None: ...
48
+
49
+ if sys.platform == "linux":
50
+ @overload
51
+ def prlimit(pid: int, resource: int, limits: Tuple[int, int]) -> Tuple[int, int]: ...
52
+ @overload
53
+ def prlimit(pid: int, resource: int) -> Tuple[int, int]: ...
54
+
55
+ error = OSError
lib/python3.12/site-packages/jedi/third_party/typeshed/stdlib/3/runpy.pyi ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from types import ModuleType
2
+ from typing import Any, Dict, Optional, TypeVar
3
+
4
+ _T = TypeVar("_T")
5
+
6
+ class _TempModule:
7
+ mod_name: str = ...
8
+ module: ModuleType = ...
9
+ def __init__(self, mod_name: str) -> None: ...
10
+ def __enter__(self: _T) -> _T: ...
11
+ def __exit__(self, *args: Any) -> None: ...
12
+
13
+ class _ModifiedArgv0:
14
+ value: Any = ...
15
+ def __init__(self, value: Any) -> None: ...
16
+ def __enter__(self: _T) -> _T: ...
17
+ def __exit__(self, *args: Any) -> None: ...
18
+
19
+ def run_module(
20
+ mod_name: str, init_globals: Optional[Dict[str, Any]] = ..., run_name: Optional[str] = ..., alter_sys: bool = ...
21
+ ) -> None: ...
22
+ def run_path(path_name: str, init_globals: Optional[Dict[str, Any]] = ..., run_name: str = ...) -> None: ...