basedpyright 1.13.2 → 1.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/dist/pyright-langserver.js +1 -1
  2. package/dist/pyright-langserver.js.map +1 -1
  3. package/dist/pyright.js +1 -1
  4. package/dist/pyright.js.map +1 -1
  5. package/dist/typeshed-fallback/commit.txt +1 -1
  6. package/dist/typeshed-fallback/stdlib/VERSIONS +2 -0
  7. package/dist/typeshed-fallback/stdlib/_ast.pyi +42 -279
  8. package/dist/typeshed-fallback/stdlib/_bisect.pyi +221 -221
  9. package/dist/typeshed-fallback/stdlib/_bootlocale.pyi +1 -1
  10. package/dist/typeshed-fallback/stdlib/_collections_abc.pyi +15 -5
  11. package/dist/typeshed-fallback/stdlib/_csv.pyi +213 -213
  12. package/dist/typeshed-fallback/stdlib/_decimal.pyi +0 -18
  13. package/dist/typeshed-fallback/stdlib/_dummy_thread.pyi +33 -33
  14. package/dist/typeshed-fallback/stdlib/_dummy_threading.pyi +180 -164
  15. package/dist/typeshed-fallback/stdlib/_heapq.pyi +67 -67
  16. package/dist/typeshed-fallback/stdlib/_interpqueues.pyi +16 -0
  17. package/dist/typeshed-fallback/stdlib/_interpreters.pyi +50 -0
  18. package/dist/typeshed-fallback/stdlib/_json.pyi +92 -92
  19. package/dist/typeshed-fallback/stdlib/_lsprof.pyi +92 -92
  20. package/dist/typeshed-fallback/stdlib/_msi.pyi +94 -92
  21. package/dist/typeshed-fallback/stdlib/_operator.pyi +0 -24
  22. package/dist/typeshed-fallback/stdlib/_random.pyi +30 -30
  23. package/dist/typeshed-fallback/stdlib/_tkinter.pyi +6 -2
  24. package/dist/typeshed-fallback/stdlib/_weakrefset.pyi +7 -1
  25. package/dist/typeshed-fallback/stdlib/abc.pyi +12 -4
  26. package/dist/typeshed-fallback/stdlib/argparse.pyi +3 -1
  27. package/dist/typeshed-fallback/stdlib/array.pyi +281 -281
  28. package/dist/typeshed-fallback/stdlib/asynchat.pyi +21 -21
  29. package/dist/typeshed-fallback/stdlib/asyncio/events.pyi +35 -4
  30. package/dist/typeshed-fallback/stdlib/asyncio/futures.pyi +107 -15
  31. package/dist/typeshed-fallback/stdlib/asyncio/locks.pyi +9 -3
  32. package/dist/typeshed-fallback/stdlib/asyncio/queues.pyi +10 -2
  33. package/dist/typeshed-fallback/stdlib/asyncio/sslproto.pyi +23 -4
  34. package/dist/typeshed-fallback/stdlib/asyncio/tasks.pyi +107 -12
  35. package/dist/typeshed-fallback/stdlib/asyncio/windows_events.pyi +86 -86
  36. package/dist/typeshed-fallback/stdlib/asyncio/windows_utils.pyi +49 -49
  37. package/dist/typeshed-fallback/stdlib/asyncore.pyi +90 -90
  38. package/dist/typeshed-fallback/stdlib/audioop.pyi +95 -95
  39. package/dist/typeshed-fallback/stdlib/binascii.pyi +123 -123
  40. package/dist/typeshed-fallback/stdlib/binhex.pyi +45 -45
  41. package/dist/typeshed-fallback/stdlib/builtins.pyi +0 -1
  42. package/dist/typeshed-fallback/stdlib/bz2.pyi +59 -6
  43. package/dist/typeshed-fallback/stdlib/cmath.pyi +112 -112
  44. package/dist/typeshed-fallback/stdlib/codecs.pyi +18 -6
  45. package/dist/typeshed-fallback/stdlib/collections/__init__.pyi +200 -56
  46. package/dist/typeshed-fallback/stdlib/concurrent/futures/__init__.pyi +33 -14
  47. package/dist/typeshed-fallback/stdlib/concurrent/futures/_base.pyi +7 -1
  48. package/dist/typeshed-fallback/stdlib/concurrent/futures/thread.pyi +7 -1
  49. package/dist/typeshed-fallback/stdlib/contextvars.pyi +99 -16
  50. package/dist/typeshed-fallback/stdlib/csv.pyi +14 -2
  51. package/dist/typeshed-fallback/stdlib/ctypes/__init__.pyi +7 -1
  52. package/dist/typeshed-fallback/stdlib/ctypes/_endian.pyi +6 -2
  53. package/dist/typeshed-fallback/stdlib/curses/panel.pyi +16 -4
  54. package/dist/typeshed-fallback/stdlib/dataclasses.pyi +7 -1
  55. package/dist/typeshed-fallback/stdlib/datetime.pyi +346 -104
  56. package/dist/typeshed-fallback/stdlib/dbm/gnu.pyi +52 -2
  57. package/dist/typeshed-fallback/stdlib/dbm/ndbm.pyi +26 -2
  58. package/dist/typeshed-fallback/stdlib/difflib.pyi +7 -1
  59. package/dist/typeshed-fallback/stdlib/distutils/__init__.pyi +5 -5
  60. package/dist/typeshed-fallback/stdlib/distutils/archive_util.pyi +35 -35
  61. package/dist/typeshed-fallback/stdlib/distutils/bcppcompiler.pyi +3 -3
  62. package/dist/typeshed-fallback/stdlib/distutils/ccompiler.pyi +173 -173
  63. package/dist/typeshed-fallback/stdlib/distutils/cmd.pyi +99 -99
  64. package/dist/typeshed-fallback/stdlib/distutils/command/bdist.pyi +25 -25
  65. package/dist/typeshed-fallback/stdlib/distutils/command/bdist_dumb.pyi +21 -21
  66. package/dist/typeshed-fallback/stdlib/distutils/command/bdist_msi.pyi +45 -45
  67. package/dist/typeshed-fallback/stdlib/distutils/command/bdist_rpm.pyi +52 -52
  68. package/dist/typeshed-fallback/stdlib/distutils/command/bdist_wininst.pyi +16 -16
  69. package/dist/typeshed-fallback/stdlib/distutils/command/build.pyi +33 -33
  70. package/dist/typeshed-fallback/stdlib/distutils/command/build_clib.pyi +27 -27
  71. package/dist/typeshed-fallback/stdlib/distutils/command/build_ext.pyi +50 -50
  72. package/dist/typeshed-fallback/stdlib/distutils/command/build_py.pyi +44 -44
  73. package/dist/typeshed-fallback/stdlib/distutils/command/build_scripts.pyi +24 -24
  74. package/dist/typeshed-fallback/stdlib/distutils/command/check.pyi +39 -39
  75. package/dist/typeshed-fallback/stdlib/distutils/command/clean.pyi +17 -17
  76. package/dist/typeshed-fallback/stdlib/distutils/command/config.pyi +84 -84
  77. package/dist/typeshed-fallback/stdlib/distutils/command/install.pyi +65 -65
  78. package/dist/typeshed-fallback/stdlib/distutils/command/install_data.pyi +19 -19
  79. package/dist/typeshed-fallback/stdlib/distutils/command/install_egg_info.pyi +18 -18
  80. package/dist/typeshed-fallback/stdlib/distutils/command/install_headers.pyi +16 -16
  81. package/dist/typeshed-fallback/stdlib/distutils/command/install_lib.pyi +25 -25
  82. package/dist/typeshed-fallback/stdlib/distutils/command/install_scripts.pyi +18 -18
  83. package/dist/typeshed-fallback/stdlib/distutils/command/register.pyi +20 -20
  84. package/dist/typeshed-fallback/stdlib/distutils/command/sdist.pyi +44 -44
  85. package/dist/typeshed-fallback/stdlib/distutils/command/upload.pyi +17 -17
  86. package/dist/typeshed-fallback/stdlib/distutils/config.pyi +17 -17
  87. package/dist/typeshed-fallback/stdlib/distutils/core.pyi +57 -57
  88. package/dist/typeshed-fallback/stdlib/distutils/cygwinccompiler.pyi +20 -20
  89. package/dist/typeshed-fallback/stdlib/distutils/debug.pyi +1 -1
  90. package/dist/typeshed-fallback/stdlib/distutils/dep_util.pyi +14 -14
  91. package/dist/typeshed-fallback/stdlib/distutils/dir_util.pyi +23 -23
  92. package/dist/typeshed-fallback/stdlib/distutils/dist.pyi +149 -149
  93. package/dist/typeshed-fallback/stdlib/distutils/errors.pyi +19 -19
  94. package/dist/typeshed-fallback/stdlib/distutils/extension.pyi +36 -36
  95. package/dist/typeshed-fallback/stdlib/distutils/fancy_getopt.pyi +34 -34
  96. package/dist/typeshed-fallback/stdlib/distutils/file_util.pyi +38 -38
  97. package/dist/typeshed-fallback/stdlib/distutils/filelist.pyi +58 -58
  98. package/dist/typeshed-fallback/stdlib/distutils/log.pyi +25 -25
  99. package/dist/typeshed-fallback/stdlib/distutils/msvccompiler.pyi +3 -3
  100. package/dist/typeshed-fallback/stdlib/distutils/spawn.pyi +6 -6
  101. package/dist/typeshed-fallback/stdlib/distutils/sysconfig.pyi +33 -33
  102. package/dist/typeshed-fallback/stdlib/distutils/text_file.pyi +21 -21
  103. package/dist/typeshed-fallback/stdlib/distutils/unixccompiler.pyi +3 -3
  104. package/dist/typeshed-fallback/stdlib/distutils/util.pyi +50 -50
  105. package/dist/typeshed-fallback/stdlib/distutils/version.pyi +38 -36
  106. package/dist/typeshed-fallback/stdlib/dummy_threading.pyi +2 -2
  107. package/dist/typeshed-fallback/stdlib/email/_header_value_parser.pyi +3 -1
  108. package/dist/typeshed-fallback/stdlib/email/charset.pyi +3 -1
  109. package/dist/typeshed-fallback/stdlib/email/header.pyi +3 -1
  110. package/dist/typeshed-fallback/stdlib/email/headerregistry.pyi +6 -1
  111. package/dist/typeshed-fallback/stdlib/enum.pyi +8 -1
  112. package/dist/typeshed-fallback/stdlib/filecmp.pyi +7 -1
  113. package/dist/typeshed-fallback/stdlib/fileinput.pyi +7 -1
  114. package/dist/typeshed-fallback/stdlib/formatter.pyi +88 -88
  115. package/dist/typeshed-fallback/stdlib/fractions.pyi +6 -2
  116. package/dist/typeshed-fallback/stdlib/functools.pyi +65 -13
  117. package/dist/typeshed-fallback/stdlib/graphlib.pyi +7 -1
  118. package/dist/typeshed-fallback/stdlib/gzip.pyi +3 -1
  119. package/dist/typeshed-fallback/stdlib/hashlib.pyi +42 -14
  120. package/dist/typeshed-fallback/stdlib/heapq.pyi +3 -1
  121. package/dist/typeshed-fallback/stdlib/hmac.pyi +30 -2
  122. package/dist/typeshed-fallback/stdlib/http/cookies.pyi +7 -1
  123. package/dist/typeshed-fallback/stdlib/imp.pyi +62 -62
  124. package/dist/typeshed-fallback/stdlib/importlib/abc.pyi +3 -1
  125. package/dist/typeshed-fallback/stdlib/importlib/machinery.pyi +3 -1
  126. package/dist/typeshed-fallback/stdlib/importlib/metadata/__init__.pyi +79 -15
  127. package/dist/typeshed-fallback/stdlib/importlib/metadata/_meta.pyi +3 -1
  128. package/dist/typeshed-fallback/stdlib/importlib/resources/simple.pyi +3 -1
  129. package/dist/typeshed-fallback/stdlib/io.pyi +428 -44
  130. package/dist/typeshed-fallback/stdlib/ipaddress.pyi +153 -28
  131. package/dist/typeshed-fallback/stdlib/itertools.pyi +5 -1
  132. package/dist/typeshed-fallback/stdlib/json/encoder.pyi +14 -2
  133. package/dist/typeshed-fallback/stdlib/keyword.pyi +6 -2
  134. package/dist/typeshed-fallback/stdlib/lib2to3/pytree.pyi +12 -2
  135. package/dist/typeshed-fallback/stdlib/logging/__init__.pyi +17 -3
  136. package/dist/typeshed-fallback/stdlib/lzma.pyi +107 -9
  137. package/dist/typeshed-fallback/stdlib/mailbox.pyi +14 -2
  138. package/dist/typeshed-fallback/stdlib/math.pyi +424 -424
  139. package/dist/typeshed-fallback/stdlib/mmap.pyi +160 -160
  140. package/dist/typeshed-fallback/stdlib/msilib/__init__.pyi +177 -177
  141. package/dist/typeshed-fallback/stdlib/msilib/schema.pyi +94 -94
  142. package/dist/typeshed-fallback/stdlib/msilib/sequence.pyi +13 -13
  143. package/dist/typeshed-fallback/stdlib/msilib/text.pyi +7 -7
  144. package/dist/typeshed-fallback/stdlib/multiprocessing/connection.pyi +9 -3
  145. package/dist/typeshed-fallback/stdlib/multiprocessing/context.pyi +12 -2
  146. package/dist/typeshed-fallback/stdlib/multiprocessing/dummy/__init__.pyi +3 -1
  147. package/dist/typeshed-fallback/stdlib/multiprocessing/managers.pyi +10 -2
  148. package/dist/typeshed-fallback/stdlib/multiprocessing/pool.pyi +7 -1
  149. package/dist/typeshed-fallback/stdlib/multiprocessing/popen_spawn_win32.pyi +30 -30
  150. package/dist/typeshed-fallback/stdlib/multiprocessing/process.pyi +15 -4
  151. package/dist/typeshed-fallback/stdlib/multiprocessing/queues.pyi +14 -2
  152. package/dist/typeshed-fallback/stdlib/multiprocessing/shared_memory.pyi +19 -5
  153. package/dist/typeshed-fallback/stdlib/nis.pyi +31 -4
  154. package/dist/typeshed-fallback/stdlib/numbers.pyi +26 -6
  155. package/dist/typeshed-fallback/stdlib/opcode.pyi +3 -1
  156. package/dist/typeshed-fallback/stdlib/optparse.pyi +3 -1
  157. package/dist/typeshed-fallback/stdlib/os/__init__.pyi +1447 -217
  158. package/dist/typeshed-fallback/stdlib/pathlib.pyi +42 -11
  159. package/dist/typeshed-fallback/stdlib/pickle.pyi +200 -12
  160. package/dist/typeshed-fallback/stdlib/posixpath.pyi +6 -2
  161. package/dist/typeshed-fallback/stdlib/pyexpat/errors.pyi +2 -0
  162. package/dist/typeshed-fallback/stdlib/pyexpat/model.pyi +2 -0
  163. package/dist/typeshed-fallback/stdlib/queue.pyi +57 -9
  164. package/dist/typeshed-fallback/stdlib/re.pyi +219 -57
  165. package/dist/typeshed-fallback/stdlib/sched.pyi +8 -1
  166. package/dist/typeshed-fallback/stdlib/signal.pyi +95 -19
  167. package/dist/typeshed-fallback/stdlib/smtpd.pyi +91 -91
  168. package/dist/typeshed-fallback/stdlib/socket.pyi +12 -2
  169. package/dist/typeshed-fallback/stdlib/sqlite3/dbapi2.pyi +417 -83
  170. package/dist/typeshed-fallback/stdlib/ssl.pyi +133 -22
  171. package/dist/typeshed-fallback/stdlib/statistics.pyi +20 -5
  172. package/dist/typeshed-fallback/stdlib/struct.pyi +114 -13
  173. package/dist/typeshed-fallback/stdlib/subprocess.pyi +14 -2
  174. package/dist/typeshed-fallback/stdlib/symbol.pyi +93 -93
  175. package/dist/typeshed-fallback/stdlib/symtable.pyi +30 -1
  176. package/dist/typeshed-fallback/stdlib/sys/__init__.pyi +7 -3
  177. package/dist/typeshed-fallback/stdlib/tarfile.pyi +6 -2
  178. package/dist/typeshed-fallback/stdlib/tempfile.pyi +17 -3
  179. package/dist/typeshed-fallback/stdlib/threading.pyi +68 -7
  180. package/dist/typeshed-fallback/stdlib/tkinter/__init__.pyi +3 -1
  181. package/dist/typeshed-fallback/stdlib/turtle.pyi +11 -3
  182. package/dist/typeshed-fallback/stdlib/types.pyi +306 -79
  183. package/dist/typeshed-fallback/stdlib/typing.pyi +310 -31
  184. package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +42 -11
  185. package/dist/typeshed-fallback/stdlib/unittest/__init__.pyi +6 -1
  186. package/dist/typeshed-fallback/stdlib/unittest/case.pyi +7 -1
  187. package/dist/typeshed-fallback/stdlib/unittest/mock.pyi +3 -1
  188. package/dist/typeshed-fallback/stdlib/urllib/parse.pyi +51 -3
  189. package/dist/typeshed-fallback/stdlib/weakref.pyi +6 -2
  190. package/dist/typeshed-fallback/stdlib/winsound.pyi +44 -28
  191. package/dist/typeshed-fallback/stdlib/xml/dom/minicompat.pyi +6 -2
  192. package/dist/typeshed-fallback/stdlib/xml/dom/minidom.pyi +33 -11
  193. package/dist/typeshed-fallback/stdlib/xml/etree/ElementTree.pyi +30 -10
  194. package/dist/typeshed-fallback/stdlib/xml/parsers/expat/errors.pyi +2 -0
  195. package/dist/typeshed-fallback/stdlib/xml/parsers/expat/model.pyi +2 -0
  196. package/dist/typeshed-fallback/stdlib/xxlimited.pyi +19 -4
  197. package/dist/typeshed-fallback/stdlib/zipimport.pyi +31 -0
  198. package/dist/typeshed-fallback/stdlib/zlib.pyi +157 -157
  199. package/dist/typeshed-fallback/stdlib/zoneinfo/__init__.pyi +18 -6
  200. package/dist/typeshed-fallback/stubs/assertpy/assertpy/extracting.pyi +2 -2
  201. package/dist/typeshed-fallback/stubs/docker/docker/_types.pyi +18 -1
  202. package/dist/typeshed-fallback/stubs/docker/docker/api/container.pyi +5 -19
  203. package/dist/typeshed-fallback/stubs/docker/docker/api/daemon.pyi +2 -1
  204. package/dist/typeshed-fallback/stubs/docker/docker/models/containers.pyi +268 -6
  205. package/dist/typeshed-fallback/stubs/docker/docker/types/containers.pyi +3 -7
  206. package/dist/typeshed-fallback/stubs/docker/docker/types/daemon.pyi +10 -4
  207. package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/states.pyi +47 -0
  208. package/dist/typeshed-fallback/stubs/gdb/gdb/__init__.pyi +1 -1
  209. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/generic.pyi +1 -1
  210. package/dist/typeshed-fallback/stubs/openpyxl/METADATA.toml +1 -1
  211. package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/packaging/extended.pyi +0 -2
  212. package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/styles/named_styles.pyi +2 -1
  213. package/dist/typeshed-fallback/stubs/pygit2/METADATA.toml +1 -1
  214. package/dist/typeshed-fallback/stubs/pytest-lazy-fixture/pytest_lazyfixture.pyi +2 -2
  215. package/dist/typeshed-fallback/stubs/python-crontab/METADATA.toml +1 -1
  216. package/dist/typeshed-fallback/stubs/reportlab/METADATA.toml +1 -1
  217. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/rl_safe_eval.pyi +23 -11
  218. package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfbase/pdfdoc.pyi +6 -0
  219. package/dist/typeshed-fallback/stubs/setuptools/METADATA.toml +1 -1
  220. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/archive_util.pyi +8 -8
  221. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/ccompiler.pyi +11 -17
  222. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/cmd.pyi +11 -11
  223. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/build_py.pyi +1 -2
  224. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/filelist.pyi +4 -12
  225. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/sysconfig.pyi +2 -4
  226. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/util.pyi +5 -8
  227. package/dist/typeshed-fallback/stubs/str2bool/METADATA.toml +2 -0
  228. package/dist/typeshed-fallback/stubs/str2bool/str2bool/__init__.pyi +7 -0
  229. package/package.json +1 -1
@@ -1,92 +1,92 @@
1
- """json speedups"""
2
-
3
- from collections.abc import Callable
4
- from typing import Any, final
5
-
6
- @final
7
- class make_encoder:
8
- """_iterencode(obj, _current_indent_level) -> iterable"""
9
- @property
10
- def sort_keys(self) -> bool:
11
- """sort_keys"""
12
- ...
13
- @property
14
- def skipkeys(self) -> bool:
15
- """skipkeys"""
16
- ...
17
- @property
18
- def key_separator(self) -> str:
19
- """key_separator"""
20
- ...
21
- @property
22
- def indent(self) -> int | None:
23
- """indent"""
24
- ...
25
- @property
26
- def markers(self) -> dict[int, Any] | None:
27
- """markers"""
28
- ...
29
- @property
30
- def default(self) -> Callable[[Any], Any]:
31
- """default"""
32
- ...
33
- @property
34
- def encoder(self) -> Callable[[str], str]:
35
- """encoder"""
36
- ...
37
- @property
38
- def item_separator(self) -> str:
39
- """item_separator"""
40
- ...
41
- def __init__(
42
- self,
43
- markers: dict[int, Any] | None,
44
- default: Callable[[Any], Any],
45
- encoder: Callable[[str], str],
46
- indent: int | None,
47
- key_separator: str,
48
- item_separator: str,
49
- sort_keys: bool,
50
- skipkeys: bool,
51
- allow_nan: bool,
52
- ) -> None: ...
53
- def __call__(self, obj: object, _current_indent_level: int) -> Any:
54
- """Call self as a function."""
55
- ...
56
-
57
- @final
58
- class make_scanner:
59
- """JSON scanner object"""
60
- object_hook: Any
61
- object_pairs_hook: Any
62
- parse_int: Any
63
- parse_constant: Any
64
- parse_float: Any
65
- strict: bool
66
- # TODO: 'context' needs the attrs above (ducktype), but not __call__.
67
- def __init__(self, context: make_scanner) -> None: ...
68
- def __call__(self, string: str, index: int) -> tuple[Any, int]:
69
- """Call self as a function."""
70
- ...
71
-
72
- def encode_basestring_ascii(s: str, /) -> str:
73
- """
74
- encode_basestring_ascii(string) -> string
75
-
76
- Return an ASCII-only JSON representation of a Python string
77
- """
78
- ...
79
- def scanstring(string: str, end: int, strict: bool = ...) -> tuple[str, int]:
80
- """
81
- scanstring(string, end, strict=True) -> (string, end)
82
-
83
- Scan the string s for a JSON string. End is the index of the
84
- character in s after the quote that started the JSON string.
85
- Unescapes all valid JSON string escape sequences and raises ValueError
86
- on attempt to decode an invalid string. If strict is False then literal
87
- control characters are allowed in the string.
88
-
89
- Returns a tuple of the decoded string and the index of the character in s
90
- after the end quote.
91
- """
92
- ...
1
+ """json speedups"""
2
+
3
+ from collections.abc import Callable
4
+ from typing import Any, final
5
+
6
+ @final
7
+ class make_encoder:
8
+ """_iterencode(obj, _current_indent_level) -> iterable"""
9
+ @property
10
+ def sort_keys(self) -> bool:
11
+ """sort_keys"""
12
+ ...
13
+ @property
14
+ def skipkeys(self) -> bool:
15
+ """skipkeys"""
16
+ ...
17
+ @property
18
+ def key_separator(self) -> str:
19
+ """key_separator"""
20
+ ...
21
+ @property
22
+ def indent(self) -> int | None:
23
+ """indent"""
24
+ ...
25
+ @property
26
+ def markers(self) -> dict[int, Any] | None:
27
+ """markers"""
28
+ ...
29
+ @property
30
+ def default(self) -> Callable[[Any], Any]:
31
+ """default"""
32
+ ...
33
+ @property
34
+ def encoder(self) -> Callable[[str], str]:
35
+ """encoder"""
36
+ ...
37
+ @property
38
+ def item_separator(self) -> str:
39
+ """item_separator"""
40
+ ...
41
+ def __init__(
42
+ self,
43
+ markers: dict[int, Any] | None,
44
+ default: Callable[[Any], Any],
45
+ encoder: Callable[[str], str],
46
+ indent: int | None,
47
+ key_separator: str,
48
+ item_separator: str,
49
+ sort_keys: bool,
50
+ skipkeys: bool,
51
+ allow_nan: bool,
52
+ ) -> None: ...
53
+ def __call__(self, obj: object, _current_indent_level: int) -> Any:
54
+ """Call self as a function."""
55
+ ...
56
+
57
+ @final
58
+ class make_scanner:
59
+ """JSON scanner object"""
60
+ object_hook: Any
61
+ object_pairs_hook: Any
62
+ parse_int: Any
63
+ parse_constant: Any
64
+ parse_float: Any
65
+ strict: bool
66
+ # TODO: 'context' needs the attrs above (ducktype), but not __call__.
67
+ def __init__(self, context: make_scanner) -> None: ...
68
+ def __call__(self, string: str, index: int) -> tuple[Any, int]:
69
+ """Call self as a function."""
70
+ ...
71
+
72
+ def encode_basestring_ascii(s: str, /) -> str:
73
+ """
74
+ encode_basestring_ascii(string) -> string
75
+
76
+ Return an ASCII-only JSON representation of a Python string
77
+ """
78
+ ...
79
+ def scanstring(string: str, end: int, strict: bool = ...) -> tuple[str, int]:
80
+ """
81
+ scanstring(string, end, strict=True) -> (string, end)
82
+
83
+ Scan the string s for a JSON string. End is the index of the
84
+ character in s after the quote that started the JSON string.
85
+ Unescapes all valid JSON string escape sequences and raises ValueError
86
+ on attempt to decode an invalid string. If strict is False then literal
87
+ control characters are allowed in the string.
88
+
89
+ Returns a tuple of the decoded string and the index of the character in s
90
+ after the end quote.
91
+ """
92
+ ...
@@ -1,92 +1,92 @@
1
- """Fast profiler"""
2
-
3
- import sys
4
- from _typeshed import structseq
5
- from collections.abc import Callable
6
- from types import CodeType
7
- from typing import Any, Final, final
8
-
9
- class Profiler:
10
- """
11
- Profiler(timer=None, timeunit=None, subcalls=True, builtins=True)
12
-
13
- Builds a profiler object using the specified timer function.
14
- The default timer is a fast built-in one based on real time.
15
- For custom timer functions returning integers, timeunit can
16
- be a float specifying a scale (i.e. how long each integer unit
17
- is, in seconds).
18
- """
19
- def __init__(
20
- self, timer: Callable[[], float] | None = None, timeunit: float = 0.0, subcalls: bool = True, builtins: bool = True
21
- ) -> None: ...
22
- def getstats(self) -> list[profiler_entry]:
23
- """
24
- getstats() -> list of profiler_entry objects
25
-
26
- Return all information collected by the profiler.
27
- Each profiler_entry is a tuple-like object with the
28
- following attributes:
29
-
30
- code code object
31
- callcount how many times this was called
32
- reccallcount how many times called recursively
33
- totaltime total time in this entry
34
- inlinetime inline time in this entry (not in subcalls)
35
- calls details of the calls
36
-
37
- The calls attribute is either None or a list of
38
- profiler_subentry objects:
39
-
40
- code called code object
41
- callcount how many times this is called
42
- reccallcount how many times this is called recursively
43
- totaltime total time spent in this call
44
- inlinetime inline time (not in further subcalls)
45
- """
46
- ...
47
- def enable(self, subcalls: bool = True, builtins: bool = True) -> None:
48
- """
49
- enable(subcalls=True, builtins=True)
50
-
51
- Start collecting profiling information.
52
- If 'subcalls' is True, also records for each function
53
- statistics separated according to its current caller.
54
- If 'builtins' is True, records the time spent in
55
- built-in functions separately from their caller.
56
- """
57
- ...
58
- def disable(self) -> None:
59
- """
60
- disable()
61
-
62
- Stop collecting profiling information.
63
- """
64
- ...
65
- def clear(self) -> None:
66
- """
67
- clear()
68
-
69
- Clear all profiling information collected so far.
70
- """
71
- ...
72
-
73
- @final
74
- class profiler_entry(structseq[Any], tuple[CodeType | str, int, int, float, float, list[profiler_subentry]]):
75
- if sys.version_info >= (3, 10):
76
- __match_args__: Final = ("code", "callcount", "reccallcount", "totaltime", "inlinetime", "calls")
77
- code: CodeType | str
78
- callcount: int
79
- reccallcount: int
80
- totaltime: float
81
- inlinetime: float
82
- calls: list[profiler_subentry]
83
-
84
- @final
85
- class profiler_subentry(structseq[Any], tuple[CodeType | str, int, int, float, float]):
86
- if sys.version_info >= (3, 10):
87
- __match_args__: Final = ("code", "callcount", "reccallcount", "totaltime", "inlinetime")
88
- code: CodeType | str
89
- callcount: int
90
- reccallcount: int
91
- totaltime: float
92
- inlinetime: float
1
+ """Fast profiler"""
2
+
3
+ import sys
4
+ from _typeshed import structseq
5
+ from collections.abc import Callable
6
+ from types import CodeType
7
+ from typing import Any, Final, final
8
+
9
+ class Profiler:
10
+ """
11
+ Profiler(timer=None, timeunit=None, subcalls=True, builtins=True)
12
+
13
+ Builds a profiler object using the specified timer function.
14
+ The default timer is a fast built-in one based on real time.
15
+ For custom timer functions returning integers, timeunit can
16
+ be a float specifying a scale (i.e. how long each integer unit
17
+ is, in seconds).
18
+ """
19
+ def __init__(
20
+ self, timer: Callable[[], float] | None = None, timeunit: float = 0.0, subcalls: bool = True, builtins: bool = True
21
+ ) -> None: ...
22
+ def getstats(self) -> list[profiler_entry]:
23
+ """
24
+ getstats() -> list of profiler_entry objects
25
+
26
+ Return all information collected by the profiler.
27
+ Each profiler_entry is a tuple-like object with the
28
+ following attributes:
29
+
30
+ code code object
31
+ callcount how many times this was called
32
+ reccallcount how many times called recursively
33
+ totaltime total time in this entry
34
+ inlinetime inline time in this entry (not in subcalls)
35
+ calls details of the calls
36
+
37
+ The calls attribute is either None or a list of
38
+ profiler_subentry objects:
39
+
40
+ code called code object
41
+ callcount how many times this is called
42
+ reccallcount how many times this is called recursively
43
+ totaltime total time spent in this call
44
+ inlinetime inline time (not in further subcalls)
45
+ """
46
+ ...
47
+ def enable(self, subcalls: bool = True, builtins: bool = True) -> None:
48
+ """
49
+ enable(subcalls=True, builtins=True)
50
+
51
+ Start collecting profiling information.
52
+ If 'subcalls' is True, also records for each function
53
+ statistics separated according to its current caller.
54
+ If 'builtins' is True, records the time spent in
55
+ built-in functions separately from their caller.
56
+ """
57
+ ...
58
+ def disable(self) -> None:
59
+ """
60
+ disable()
61
+
62
+ Stop collecting profiling information.
63
+ """
64
+ ...
65
+ def clear(self) -> None:
66
+ """
67
+ clear()
68
+
69
+ Clear all profiling information collected so far.
70
+ """
71
+ ...
72
+
73
+ @final
74
+ class profiler_entry(structseq[Any], tuple[CodeType | str, int, int, float, float, list[profiler_subentry]]):
75
+ if sys.version_info >= (3, 10):
76
+ __match_args__: Final = ("code", "callcount", "reccallcount", "totaltime", "inlinetime", "calls")
77
+ code: CodeType | str
78
+ callcount: int
79
+ reccallcount: int
80
+ totaltime: float
81
+ inlinetime: float
82
+ calls: list[profiler_subentry]
83
+
84
+ @final
85
+ class profiler_subentry(structseq[Any], tuple[CodeType | str, int, int, float, float]):
86
+ if sys.version_info >= (3, 10):
87
+ __match_args__: Final = ("code", "callcount", "reccallcount", "totaltime", "inlinetime")
88
+ code: CodeType | str
89
+ callcount: int
90
+ reccallcount: int
91
+ totaltime: float
92
+ inlinetime: float
@@ -1,92 +1,94 @@
1
- import sys
2
-
3
- if sys.platform == "win32":
4
- class MSIError(Exception): ...
5
- # Actual typename View, not exposed by the implementation
6
- class _View:
7
- def Execute(self, params: _Record | None = ...) -> None: ...
8
- def GetColumnInfo(self, kind: int) -> _Record: ...
9
- def Fetch(self) -> _Record: ...
10
- def Modify(self, mode: int, record: _Record) -> None: ...
11
- def Close(self) -> None: ...
12
- # Don't exist at runtime
13
- __new__: None # type: ignore[assignment]
14
- __init__: None # type: ignore[assignment]
15
-
16
- # Actual typename SummaryInformation, not exposed by the implementation
17
- class _SummaryInformation:
18
- def GetProperty(self, field: int) -> int | bytes | None: ...
19
- def GetPropertyCount(self) -> int: ...
20
- def SetProperty(self, field: int, value: int | str) -> None: ...
21
- def Persist(self) -> None: ...
22
- # Don't exist at runtime
23
- __new__: None # type: ignore[assignment]
24
- __init__: None # type: ignore[assignment]
25
-
26
- # Actual typename Database, not exposed by the implementation
27
- class _Database:
28
- def OpenView(self, sql: str) -> _View: ...
29
- def Commit(self) -> None: ...
30
- def GetSummaryInformation(self, updateCount: int) -> _SummaryInformation: ...
31
- def Close(self) -> None: ...
32
- # Don't exist at runtime
33
- __new__: None # type: ignore[assignment]
34
- __init__: None # type: ignore[assignment]
35
-
36
- # Actual typename Record, not exposed by the implementation
37
- class _Record:
38
- def GetFieldCount(self) -> int: ...
39
- def GetInteger(self, field: int) -> int: ...
40
- def GetString(self, field: int) -> str: ...
41
- def SetString(self, field: int, str: str) -> None: ...
42
- def SetStream(self, field: int, stream: str) -> None: ...
43
- def SetInteger(self, field: int, int: int) -> None: ...
44
- def ClearData(self) -> None: ...
45
- # Don't exist at runtime
46
- __new__: None # type: ignore[assignment]
47
- __init__: None # type: ignore[assignment]
48
-
49
- def UuidCreate() -> str: ...
50
- def FCICreate(cabname: str, files: list[str], /) -> None: ...
51
- def OpenDatabase(path: str, persist: int, /) -> _Database: ...
52
- def CreateRecord(count: int, /) -> _Record: ...
53
-
54
- MSICOLINFO_NAMES: int
55
- MSICOLINFO_TYPES: int
56
- MSIDBOPEN_CREATE: int
57
- MSIDBOPEN_CREATEDIRECT: int
58
- MSIDBOPEN_DIRECT: int
59
- MSIDBOPEN_PATCHFILE: int
60
- MSIDBOPEN_READONLY: int
61
- MSIDBOPEN_TRANSACT: int
62
- MSIMODIFY_ASSIGN: int
63
- MSIMODIFY_DELETE: int
64
- MSIMODIFY_INSERT: int
65
- MSIMODIFY_INSERT_TEMPORARY: int
66
- MSIMODIFY_MERGE: int
67
- MSIMODIFY_REFRESH: int
68
- MSIMODIFY_REPLACE: int
69
- MSIMODIFY_SEEK: int
70
- MSIMODIFY_UPDATE: int
71
- MSIMODIFY_VALIDATE: int
72
- MSIMODIFY_VALIDATE_DELETE: int
73
- MSIMODIFY_VALIDATE_FIELD: int
74
- MSIMODIFY_VALIDATE_NEW: int
75
-
76
- PID_APPNAME: int
77
- PID_AUTHOR: int
78
- PID_CHARCOUNT: int
79
- PID_CODEPAGE: int
80
- PID_COMMENTS: int
81
- PID_CREATE_DTM: int
82
- PID_KEYWORDS: int
83
- PID_LASTAUTHOR: int
84
- PID_LASTPRINTED: int
85
- PID_LASTSAVE_DTM: int
86
- PID_PAGECOUNT: int
87
- PID_REVNUMBER: int
88
- PID_SECURITY: int
89
- PID_SUBJECT: int
90
- PID_TEMPLATE: int
91
- PID_TITLE: int
92
- PID_WORDCOUNT: int
1
+ """Documentation"""
2
+
3
+ import sys
4
+
5
+ if sys.platform == "win32":
6
+ class MSIError(Exception): ...
7
+ # Actual typename View, not exposed by the implementation
8
+ class _View:
9
+ def Execute(self, params: _Record | None = ...) -> None: ...
10
+ def GetColumnInfo(self, kind: int) -> _Record: ...
11
+ def Fetch(self) -> _Record: ...
12
+ def Modify(self, mode: int, record: _Record) -> None: ...
13
+ def Close(self) -> None: ...
14
+ # Don't exist at runtime
15
+ __new__: None # type: ignore[assignment]
16
+ __init__: None # type: ignore[assignment]
17
+
18
+ # Actual typename SummaryInformation, not exposed by the implementation
19
+ class _SummaryInformation:
20
+ def GetProperty(self, field: int) -> int | bytes | None: ...
21
+ def GetPropertyCount(self) -> int: ...
22
+ def SetProperty(self, field: int, value: int | str) -> None: ...
23
+ def Persist(self) -> None: ...
24
+ # Don't exist at runtime
25
+ __new__: None # type: ignore[assignment]
26
+ __init__: None # type: ignore[assignment]
27
+
28
+ # Actual typename Database, not exposed by the implementation
29
+ class _Database:
30
+ def OpenView(self, sql: str) -> _View: ...
31
+ def Commit(self) -> None: ...
32
+ def GetSummaryInformation(self, updateCount: int) -> _SummaryInformation: ...
33
+ def Close(self) -> None: ...
34
+ # Don't exist at runtime
35
+ __new__: None # type: ignore[assignment]
36
+ __init__: None # type: ignore[assignment]
37
+
38
+ # Actual typename Record, not exposed by the implementation
39
+ class _Record:
40
+ def GetFieldCount(self) -> int: ...
41
+ def GetInteger(self, field: int) -> int: ...
42
+ def GetString(self, field: int) -> str: ...
43
+ def SetString(self, field: int, str: str) -> None: ...
44
+ def SetStream(self, field: int, stream: str) -> None: ...
45
+ def SetInteger(self, field: int, int: int) -> None: ...
46
+ def ClearData(self) -> None: ...
47
+ # Don't exist at runtime
48
+ __new__: None # type: ignore[assignment]
49
+ __init__: None # type: ignore[assignment]
50
+
51
+ def UuidCreate() -> str: ...
52
+ def FCICreate(cabname: str, files: list[str], /) -> None: ...
53
+ def OpenDatabase(path: str, persist: int, /) -> _Database: ...
54
+ def CreateRecord(count: int, /) -> _Record: ...
55
+
56
+ MSICOLINFO_NAMES: int
57
+ MSICOLINFO_TYPES: int
58
+ MSIDBOPEN_CREATE: int
59
+ MSIDBOPEN_CREATEDIRECT: int
60
+ MSIDBOPEN_DIRECT: int
61
+ MSIDBOPEN_PATCHFILE: int
62
+ MSIDBOPEN_READONLY: int
63
+ MSIDBOPEN_TRANSACT: int
64
+ MSIMODIFY_ASSIGN: int
65
+ MSIMODIFY_DELETE: int
66
+ MSIMODIFY_INSERT: int
67
+ MSIMODIFY_INSERT_TEMPORARY: int
68
+ MSIMODIFY_MERGE: int
69
+ MSIMODIFY_REFRESH: int
70
+ MSIMODIFY_REPLACE: int
71
+ MSIMODIFY_SEEK: int
72
+ MSIMODIFY_UPDATE: int
73
+ MSIMODIFY_VALIDATE: int
74
+ MSIMODIFY_VALIDATE_DELETE: int
75
+ MSIMODIFY_VALIDATE_FIELD: int
76
+ MSIMODIFY_VALIDATE_NEW: int
77
+
78
+ PID_APPNAME: int
79
+ PID_AUTHOR: int
80
+ PID_CHARCOUNT: int
81
+ PID_CODEPAGE: int
82
+ PID_COMMENTS: int
83
+ PID_CREATE_DTM: int
84
+ PID_KEYWORDS: int
85
+ PID_LASTAUTHOR: int
86
+ PID_LASTPRINTED: int
87
+ PID_LASTSAVE_DTM: int
88
+ PID_PAGECOUNT: int
89
+ PID_REVNUMBER: int
90
+ PID_SECURITY: int
91
+ PID_SUBJECT: int
92
+ PID_TEMPLATE: int
93
+ PID_TITLE: int
94
+ PID_WORDCOUNT: int
@@ -196,15 +196,6 @@ def length_hint(obj: object, default: int = 0, /) -> int:
196
196
  ...
197
197
  @final
198
198
  class attrgetter(Generic[_T_co]):
199
- """
200
- attrgetter(attr, ...) --> attrgetter object
201
-
202
- Return a callable object that fetches the given attribute(s) from its operand.
203
- After f = attrgetter('name'), the call f(r) returns r.name.
204
- After g = attrgetter('name', 'date'), the call g(r) returns (r.name, r.date).
205
- After h = attrgetter('name.first', 'name.last'), the call h(r) returns
206
- (r.name.first, r.name.last).
207
- """
208
199
  @overload
209
200
  def __new__(cls, attr: str, /) -> attrgetter[Any]: ...
210
201
  @overload
@@ -221,13 +212,6 @@ class attrgetter(Generic[_T_co]):
221
212
 
222
213
  @final
223
214
  class itemgetter(Generic[_T_co]):
224
- """
225
- itemgetter(item, ...) --> itemgetter object
226
-
227
- Return a callable object that fetches the given item(s) from its operand.
228
- After f = itemgetter(2), the call f(r) returns r[2].
229
- After g = itemgetter(2, 5, 3), the call g(r) returns (r[2], r[5], r[3])
230
- """
231
215
  @overload
232
216
  def __new__(cls, item: _T, /) -> itemgetter[_T]: ...
233
217
  @overload
@@ -245,14 +229,6 @@ class itemgetter(Generic[_T_co]):
245
229
 
246
230
  @final
247
231
  class methodcaller:
248
- """
249
- methodcaller(name, ...) --> methodcaller object
250
-
251
- Return a callable object that calls the given method on its operand.
252
- After f = methodcaller('name'), the call f(r) returns r.name().
253
- After g = methodcaller('name', 'date', foo=1), the call g(r) returns
254
- r.name('date', foo=1).
255
- """
256
232
  def __init__(self, name: str, /, *args: Any, **kwargs: Any) -> None: ...
257
233
  def __call__(self, obj: Any) -> Any:
258
234
  """Call self as a function."""