basedpyright 1.18.4 → 1.19.0
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.
- package/dist/pyright-langserver.js +1 -1
- package/dist/pyright-langserver.js.map +1 -1
- package/dist/pyright.js +1 -1
- package/dist/pyright.js.map +1 -1
- package/dist/typeshed-fallback/stdlib/_collections_abc.pyi +6 -2
- package/dist/typeshed-fallback/stdlib/_csv.pyi +1 -63
- package/dist/typeshed-fallback/stdlib/_ctypes.pyi +29 -3
- package/dist/typeshed-fallback/stdlib/_interpchannels.pyi +258 -86
- package/dist/typeshed-fallback/stdlib/_interpqueues.pyi +100 -16
- package/dist/typeshed-fallback/stdlib/_interpreters.pyi +204 -50
- package/dist/typeshed-fallback/stdlib/_json.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/_socket.pyi +5 -26
- package/dist/typeshed-fallback/stdlib/_sqlite3.pyi +24 -9
- package/dist/typeshed-fallback/stdlib/_stat.pyi +13 -2
- package/dist/typeshed-fallback/stdlib/_thread.pyi +35 -93
- package/dist/typeshed-fallback/stdlib/asyncio/futures.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/atexit.pyi +6 -20
- package/dist/typeshed-fallback/stdlib/builtins.pyi +250 -251
- package/dist/typeshed-fallback/stdlib/collections/__init__.pyi +8 -7
- package/dist/typeshed-fallback/stdlib/datetime.pyi +9 -3
- package/dist/typeshed-fallback/stdlib/dbm/sqlite3.pyi +29 -29
- package/dist/typeshed-fallback/stdlib/dis.pyi +33 -7
- package/dist/typeshed-fallback/stdlib/functools.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/gc.pyi +5 -11
- package/dist/typeshed-fallback/stdlib/importlib/metadata/__init__.pyi +17 -2
- package/dist/typeshed-fallback/stdlib/importlib/metadata/diagnose.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/importlib/resources/_functional.pyi +30 -30
- package/dist/typeshed-fallback/stdlib/io.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/ipaddress.pyi +8 -1
- package/dist/typeshed-fallback/stdlib/itertools.pyi +3 -6
- package/dist/typeshed-fallback/stdlib/marshal.pyi +61 -4
- package/dist/typeshed-fallback/stdlib/math.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/mmap.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/multiprocessing/managers.pyi +14 -2
- package/dist/typeshed-fallback/stdlib/os/__init__.pyi +43 -9
- package/dist/typeshed-fallback/stdlib/posixpath.pyi +14 -2
- package/dist/typeshed-fallback/stdlib/signal.pyi +2 -3
- package/dist/typeshed-fallback/stdlib/sqlite3/__init__.pyi +54 -6
- package/dist/typeshed-fallback/stdlib/sys/__init__.pyi +11 -17
- package/dist/typeshed-fallback/stdlib/threading.pyi +44 -16
- package/dist/typeshed-fallback/stdlib/time.pyi +2 -10
- package/dist/typeshed-fallback/stdlib/types.pyi +31 -13
- package/dist/typeshed-fallback/stdlib/typing.pyi +6 -2
- package/dist/typeshed-fallback/stdlib/unicodedata.pyi +2 -2
- package/package.json +1 -1
|
@@ -13,23 +13,13 @@ _T = TypeVar("_T")
|
|
|
13
13
|
_P = ParamSpec("_P")
|
|
14
14
|
|
|
15
15
|
def _clear() -> None:
|
|
16
|
-
"""
|
|
17
|
-
_clear() -> None
|
|
18
|
-
|
|
19
|
-
Clear the list of previously registered exit functions.
|
|
20
|
-
"""
|
|
16
|
+
"""Clear the list of previously registered exit functions."""
|
|
21
17
|
...
|
|
22
18
|
def _ncallbacks() -> int:
|
|
23
|
-
"""
|
|
24
|
-
_ncallbacks() -> int
|
|
25
|
-
|
|
26
|
-
Return the number of registered exit functions.
|
|
27
|
-
"""
|
|
19
|
+
"""Return the number of registered exit functions."""
|
|
28
20
|
...
|
|
29
21
|
def _run_exitfuncs() -> None:
|
|
30
22
|
"""
|
|
31
|
-
_run_exitfuncs() -> None
|
|
32
|
-
|
|
33
23
|
Run all registered exit functions.
|
|
34
24
|
|
|
35
25
|
If a callback raises an exception, it is logged with sys.unraisablehook.
|
|
@@ -37,21 +27,17 @@ def _run_exitfuncs() -> None:
|
|
|
37
27
|
...
|
|
38
28
|
def register(func: Callable[_P, _T], /, *args: _P.args, **kwargs: _P.kwargs) -> Callable[_P, _T]:
|
|
39
29
|
"""
|
|
40
|
-
register(func, *args, **kwargs) -> func
|
|
41
|
-
|
|
42
30
|
Register a function to be executed upon normal program termination
|
|
43
31
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
32
|
+
func - function to be called at exit
|
|
33
|
+
args - optional arguments to pass to func
|
|
34
|
+
kwargs - optional keyword arguments to pass to func
|
|
47
35
|
|
|
48
|
-
|
|
36
|
+
func is returned to facilitate usage as a decorator.
|
|
49
37
|
"""
|
|
50
38
|
...
|
|
51
39
|
def unregister(func: Callable[..., object], /) -> None:
|
|
52
40
|
"""
|
|
53
|
-
unregister(func) -> None
|
|
54
|
-
|
|
55
41
|
Unregister an exit function which was previously registered using
|
|
56
42
|
atexit.register
|
|
57
43
|
|