basedpyright 1.22.1 → 1.23.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/README.md +3 -3
- 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/_ssl.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/functools.pyi +16 -12
- package/package.json +3 -1
|
@@ -40,12 +40,14 @@ def reduce(function: Callable[[_T, _S], _T], sequence: Iterable[_S], initial: _T
|
|
|
40
40
|
"""
|
|
41
41
|
reduce(function, iterable[, initial], /) -> value
|
|
42
42
|
|
|
43
|
-
Apply a function of two arguments cumulatively to the items of
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
Apply a function of two arguments cumulatively to the items of an iterable, from left to right.
|
|
44
|
+
|
|
45
|
+
This effectively reduces the iterable to a single value. If initial is present,
|
|
46
|
+
it is placed before the items of the iterable in the calculation, and serves as
|
|
47
|
+
a default when the iterable is empty.
|
|
48
|
+
|
|
49
|
+
For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5])
|
|
50
|
+
calculates ((((1 + 2) + 3) + 4) + 5).
|
|
49
51
|
"""
|
|
50
52
|
...
|
|
51
53
|
@overload
|
|
@@ -53,12 +55,14 @@ def reduce(function: Callable[[_T, _T], _T], sequence: Iterable[_T], /) -> _T:
|
|
|
53
55
|
"""
|
|
54
56
|
reduce(function, iterable[, initial], /) -> value
|
|
55
57
|
|
|
56
|
-
Apply a function of two arguments cumulatively to the items of
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
Apply a function of two arguments cumulatively to the items of an iterable, from left to right.
|
|
59
|
+
|
|
60
|
+
This effectively reduces the iterable to a single value. If initial is present,
|
|
61
|
+
it is placed before the items of the iterable in the calculation, and serves as
|
|
62
|
+
a default when the iterable is empty.
|
|
63
|
+
|
|
64
|
+
For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5])
|
|
65
|
+
calculates ((((1 + 2) + 3) + 4) + 5).
|
|
62
66
|
"""
|
|
63
67
|
...
|
|
64
68
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "basedpyright",
|
|
3
3
|
"displayName": "basedpyright",
|
|
4
4
|
"description": "a pyright fork with various type checking improvements, improved vscode support and pylance features built into the language server",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.23.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "detachhead"
|
|
@@ -40,6 +40,8 @@
|
|
|
40
40
|
],
|
|
41
41
|
"main": "index.js",
|
|
42
42
|
"bin": {
|
|
43
|
+
"basedpyright": "index.js",
|
|
44
|
+
"basedpyright-langserver": "langserver.index.js",
|
|
43
45
|
"pyright": "index.js",
|
|
44
46
|
"pyright-langserver": "langserver.index.js"
|
|
45
47
|
}
|