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.
@@ -229,7 +229,7 @@ class SSLSession:
229
229
  ...
230
230
  @property
231
231
  def id(self) -> bytes:
232
- """Session id"""
232
+ """Session ID."""
233
233
  ...
234
234
  @property
235
235
  def ticket_lifetime_hint(self) -> int:
@@ -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 a sequence
44
- or iterable, from left to right, so as to reduce the iterable to a single
45
- value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates
46
- ((((1+2)+3)+4)+5). If initial is present, it is placed before the items
47
- of the iterable in the calculation, and serves as a default when the
48
- iterable is empty.
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 a sequence
57
- or iterable, from left to right, so as to reduce the iterable to a single
58
- value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates
59
- ((((1+2)+3)+4)+5). If initial is present, it is placed before the items
60
- of the iterable in the calculation, and serves as a default when the
61
- iterable is empty.
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.22.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
  }