Skip to content

Pull Pylance with Pyright 1.1.410 - #11522

Merged
Rich Chiodo (rchiodo) merged 3 commits into
mainfrom
pull-pylance-with-pyright-1.1.410-20260624-210501
Jun 24, 2026
Merged

Rich Chiodo (rchiodo) merged 3 commits into
mainfrom
pull-pylance-with-pyright-1.1.410-20260624-210501

Conversation

@bschnurr

Copy link
Copy Markdown
Member

No description provided.

displayName: Use Node 24.15.0
inputs:
versionSpec: 22.x
versionSpec: 24.15.0

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📍 build/azuredevops/azure-pipelines.yml:44
Node version single-source-of-truth is now broken (raised independently by Advocate, Skeptic, and Architect). The pipelines hard-code versionSpec: 24.15.0 (here and in azure-pipelines-release.yml), but the repo root .nvmrc still reads 22 (verified) and @types/node is bumped to ^25. This contradicts the documented rule: "Always use the Node.js version specified in .nvmrc. Do not hard-code a Node version." Result: CI builds on Node 24, local nvm use selects Node 22, and the type surface describes Node 25 — a green CI no longer matches the declared dev runtime. Fix in this PR: bump .nvmrc to the intended major (24) and align @types/node; ideally have the pipeline read from .nvmrc rather than hard-coding the version in four NodeTool tasks.

[verified]

@rchiodo Rich Chiodo (rchiodo) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved via Review Center.

Rich Chiodo (rchiodo) and others added 2 commits June 24, 2026 14:38
…10501

Resolve conflicts with the older 1.1.410 pull (#11506) by taking the newer
pylance snapshot for documentSymbolCollector, pythonPathUtils, parser tests,
and dependency versions.

Co-authored-by: Copilot <[email protected]>
Use an index-signature cast instead of a leading-underscore type property
for the CompletionProvider MRU test access, and remove unused diagSink
declarations in the LazyImport parser tests.

Co-authored-by: Copilot <[email protected]>

@rchiodo Rich Chiodo (rchiodo) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved via Review Center.

@github-actions

Copy link
Copy Markdown
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

ibis (https://github.com/ibis-project/ibis)
-         Function accepts too many positional parameters; expected 1 but received 2
+         Function accepts too few positional parameters; expected 2 but received 1
-         Function accepts too many positional parameters; expected 1 but received 2 (reportIncompatibleMethodOverride)
+         Function accepts too few positional parameters; expected 2 but received 1 (reportIncompatibleMethodOverride)
-         Function accepts too many positional parameters; expected 1 but received 2
+         Function accepts too few positional parameters; expected 2 but received 1
-         Function accepts too many positional parameters; expected 1 but received 2
+         Function accepts too few positional parameters; expected 2 but received 1

apprise (https://github.com/caronc/apprise)
-       Function accepts too many positional parameters; expected 2 but received 7 (reportAttributeAccessIssue)
+       Function accepts too few positional parameters; expected 7 but received 2 (reportAttributeAccessIssue)
-       Function accepts too many positional parameters; expected 2 but received 7 (reportAttributeAccessIssue)
+       Function accepts too few positional parameters; expected 7 but received 2 (reportAttributeAccessIssue)

sympy (https://github.com/sympy/sympy)
-         Function accepts too many positional parameters; expected 1 but received 2 (reportAttributeAccessIssue)
+         Function accepts too few positional parameters; expected 2 but received 1 (reportAttributeAccessIssue)
-       Function accepts too many positional parameters; expected 2 but received 3
+       Function accepts too few positional parameters; expected 3 but received 2
-             Function accepts too many positional parameters; expected 2 but received 3
+             Function accepts too few positional parameters; expected 3 but received 2
-             Function accepts too many positional parameters; expected 0 but received 1 (reportInvalidTypeArguments)
+             Function accepts too few positional parameters; expected 1 but received 0 (reportInvalidTypeArguments)
-   .../projects/sympy/sympy/solvers/tests/test_solvers.py:1216:18 - error: Operator "+" not supported for types "Basic" and "Expr" (reportOperatorIssue)
+   .../projects/sympy/sympy/solvers/tests/test_solveset.py:315:25 - error: "Set" is not iterable
+     "__iter__" method not defined (reportGeneralTypeIssues)
+   .../projects/sympy/sympy/solvers/tests/test_solveset.py:315:25 - error: "ConditionSet" is not iterable
+     "__iter__" method not defined (reportGeneralTypeIssues)
+   .../projects/sympy/sympy/solvers/tests/test_solveset.py:2030:20 - error: "__getitem__" method not defined on type "Basic" (reportIndexIssue)
+   .../projects/sympy/sympy/solvers/tests/test_solveset.py:2042:20 - error: "__getitem__" method not defined on type "Basic" (reportIndexIssue)
+   .../projects/sympy/sympy/solvers/tests/test_solveset.py:2055:20 - error: "__getitem__" method not defined on type "Basic" (reportIndexIssue)
+   .../projects/sympy/sympy/solvers/tests/test_solveset.py:2076:16 - error: Argument of type "Unknown | FiniteSet | Set | Intersection | Union | Complement | Any | ConditionSet" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+     Type "Unknown | FiniteSet | Set | Intersection | Union | Complement | Any | ConditionSet" is not assignable to type "Sized"
+       "Set" is incompatible with protocol "Sized"
+         "__len__" is not present (reportArgumentType)
+   .../projects/sympy/sympy/solvers/tests/test_solveset.py:2077:20 - error: "__getitem__" method not defined on type "Basic" (reportIndexIssue)
+   .../projects/sympy/sympy/solvers/tests/test_solveset.py:2270:16 - error: Argument of type "Unknown | FiniteSet | Set | Intersection | Union | Complement | Any | ConditionSet" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+     Type "Unknown | FiniteSet | Set | Intersection | Union | Complement | Any | ConditionSet" is not assignable to type "Sized"
+       "Set" is incompatible with protocol "Sized"
+         "__len__" is not present (reportArgumentType)
+   .../projects/sympy/sympy/solvers/tests/test_solveset.py:2351:16 - error: Argument of type "Unknown | FiniteSet | Set | Intersection | Union | Complement | Any | ConditionSet" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+     Type "Unknown | FiniteSet | Set | Intersection | Union | Complement | Any | ConditionSet" is not assignable to type "Sized"
+       "Set" is incompatible with protocol "Sized"
+         "__len__" is not present (reportArgumentType)
+   .../projects/sympy/sympy/solvers/tests/test_solveset.py:2364:16 - error: Argument of type "Unknown | FiniteSet | Set | Intersection | Union | Complement | Any | ConditionSet" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+     Type "Unknown | FiniteSet | Set | Intersection | Union | Complement | Any | ConditionSet" is not assignable to type "Sized"
+       "Set" is incompatible with protocol "Sized"
+         "__len__" is not present (reportArgumentType)
+   .../projects/sympy/sympy/solvers/tests/test_solveset.py:2370:16 - error: Argument of type "Unknown | FiniteSet | Set | Intersection | Union | Complement | Any | ConditionSet" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+     Type "Unknown | FiniteSet | Set | Intersection | Union | Complement | Any | ConditionSet" is not assignable to type "Sized"
+       "Set" is incompatible with protocol "Sized"
+         "__len__" is not present (reportArgumentType)
+   .../projects/sympy/sympy/solvers/tests/test_solveset.py:2538:16 - error: Argument of type "Unknown | FiniteSet | Set | Intersection | Union | Complement | Any | ConditionSet" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+     Type "Unknown | FiniteSet | Set | Intersection | Union | Complement | Any | ConditionSet" is not assignable to type "Sized"
+       "Set" is incompatible with protocol "Sized"
+         "__len__" is not present (reportArgumentType)
+   .../projects/sympy/sympy/solvers/tests/test_solveset.py:2541:20 - error: Argument of type "Unknown | Basic | Any" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+     Type "Unknown | Basic | Any" is not assignable to type "Sized"
+       "Basic" is incompatible with protocol "Sized"
+         "__len__" is not present (reportArgumentType)
+   .../projects/sympy/sympy/stats/symbolic_probability.py:75:9 - error: Method "doit" overrides class "Basic" in an incompatible manner
+     Return type mismatch: base method returns type "Basic", override returns type "Unknown | Any | BernoulliDistribution | Probability | Zero | One | tuple[Unknown, ...] | Sum | Expr | ZeroMatrix | NaN | Piecewise | Basic | ComplexInfinity | Float | Infinity | Integer | Lambda | Mul | NegativeInfinity | NegativeOne | Number | Rational | Integral | Literal[0]"
+       Type "Unknown | Any | BernoulliDistribution | Probability | Zero | One | tuple[Unknown, ...] | Sum | Expr | ZeroMatrix | NaN | Piecewise | Basic | ComplexInfinity | Float | Infinity | Integer | Lambda | Mul | NegativeInfinity | NegativeOne | Number | Rational | Integral | Literal[0]" is not assignable to type "Basic"
+         "Literal[0]" is not assignable to "Basic" (reportIncompatibleMethodOverride)
+   .../projects/sympy/sympy/stats/tests/test_continuous_rv.py:1543:12 - error: No overloads for "simplify" match the provided arguments (reportCallIssue)
+   .../projects/sympy/sympy/stats/tests/test_continuous_rv.py:1543:21 - error: Argument of type "Unknown | Any | BernoulliDistribution | Probability | Zero | One | tuple[Unknown, ...] | Sum | Expr | ZeroMatrix | NaN | Piecewise | Basic | ComplexInfinity | Float | Infinity | Integer | Lambda | Mul | NegativeInfinity | NegativeOne | Number | Rational | Integral | Literal[0]" cannot be assigned to parameter "expr" of type "Basic" in function "simplify"
+     Type "Unknown | Any | BernoulliDistribution | Probability | Zero | One | tuple[Unknown, ...] | Sum | Expr | ZeroMatrix | NaN | Piecewise | Basic | ComplexInfinity | Float | Infinity | Integer | Lambda | Mul | NegativeInfinity | NegativeOne | Number | Rational | Integral | Literal[0]" is not assignable to type "Basic"
+       "Literal[0]" is not assignable to "Basic" (reportArgumentType)
+   .../projects/sympy/sympy/stats/tests/test_continuous_rv.py:1545:12 - error: No overloads for "simplify" match the provided arguments (reportCallIssue)
+   .../projects/sympy/sympy/stats/tests/test_continuous_rv.py:1545:21 - error: Argument of type "Unknown | Any | BernoulliDistribution | Probability | Zero | One | tuple[Unknown, ...] | Sum | Expr | ZeroMatrix | NaN | Piecewise | Basic | ComplexInfinity | Float | Infinity | Integer | Lambda | Mul | NegativeInfinity | NegativeOne | Number | Rational | Integral | Literal[0]" cannot be assigned to parameter "expr" of type "Basic" in function "simplify"
+     Type "Unknown | Any | BernoulliDistribution | Probability | Zero | One | tuple[Unknown, ...] | Sum | Expr | ZeroMatrix | NaN | Piecewise | Basic | ComplexInfinity | Float | Infinity | Integer | Lambda | Mul | NegativeInfinity | NegativeOne | Number | Rational | Integral | Literal[0]" is not assignable to type "Basic"
+       "Literal[0]" is not assignable to "Basic" (reportArgumentType)
+   .../projects/sympy/sympy/stats/tests/test_continuous_rv.py:1550:12 - error: No overloads for "simplify" match the provided arguments (reportCallIssue)
+   .../projects/sympy/sympy/stats/tests/test_continuous_rv.py:1550:21 - error: Argument of type "Unknown | Any | BernoulliDistribution | Probability | Zero | One | tuple[Unknown, ...] | Sum | Expr | ZeroMatrix | NaN | Piecewise | Basic | ComplexInfinity | Float | Infinity | Integer | Lambda | Mul | NegativeInfinity | NegativeOne | Number | Rational | Integral | Literal[0]" cannot be assigned to parameter "expr" of type "Basic" in function "simplify"
+     Type "Unknown | Any | BernoulliDistribution | Probability | Zero | One | tuple[Unknown, ...] | Sum | Expr | ZeroMatrix | NaN | Piecewise | Basic | ComplexInfinity | Float | Infinity | Integer | Lambda | Mul | NegativeInfinity | NegativeOne | Number | Rational | Integral | Literal[0]" is not assignable to type "Basic"
+       "Literal[0]" is not assignable to "Basic" (reportArgumentType)
-   .../projects/sympy/sympy/stats/tests/test_discrete_rv.py:41:12 - error: Operator "-" not supported for types "Unknown | Expr | tuple[Unknown, ...] | Sum | ZeroMatrix | Add | Zero | NaN | Piecewise | Basic | Literal[0]" and "Unknown | Expr | MatrixExpr | One | NegativeOne | Zero | Integer | int"
+   .../projects/sympy/sympy/stats/tests/test_discrete_rv.py:41:12 - error: Operator "-" not supported for types "Unknown | Expr | tuple[Unknown, ...] | Sum | ZeroMatrix | Zero | NaN | Piecewise | Basic | Literal[0]" and "Unknown | Expr | MatrixExpr | One | NegativeOne | Zero | Integer | int"
-   .../projects/sympy/sympy/stats/tests/test_discrete_rv.py:41:37 - error: Operator "**" not supported for types "Unknown | Expr | tuple[Unknown, ...] | Sum | ZeroMatrix | Add | Zero | NaN | Piecewise | Basic | Literal[0]" and "Literal[2]"

... (truncated 376 lines) ...

zope.interface (https://github.com/zopefoundation/zope.interface)
-       Function accepts too many positional parameters; expected 0 but received 1 (reportAssignmentType)
+       Function accepts too few positional parameters; expected 1 but received 0 (reportAssignmentType)

scrapy (https://github.com/scrapy/scrapy)
-       Function accepts too many positional parameters; expected 0 but received 1
+       Function accepts too few positional parameters; expected 1 but received 0
-         Function accepts too many positional parameters; expected 0 but received 2
+         Function accepts too few positional parameters; expected 1 but received 0
-         Function accepts too many positional parameters; expected 0 but received 1
+         Function accepts too few positional parameters; expected 1 but received 0
-         Function accepts too many positional parameters; expected 0 but received 2
+         Function accepts too few positional parameters; expected 1 but received 0
-         Function accepts too many positional parameters; expected 0 but received 1
+         Function accepts too few positional parameters; expected 1 but received 0
-         Function accepts too many positional parameters; expected 0 but received 2
+         Function accepts too few positional parameters; expected 1 but received 0
-         Function accepts too many positional parameters; expected 0 but received 1
+         Function accepts too few positional parameters; expected 1 but received 0
-         Function accepts too many positional parameters; expected 0 but received 2
+         Function accepts too few positional parameters; expected 1 but received 0
-         Function accepts too many positional parameters; expected 0 but received 1
+         Function accepts too few positional parameters; expected 1 but received 0

prefect (https://github.com/PrefectHQ/prefect)
-       Function accepts too many positional parameters; expected 2 but received 3 (reportAttributeAccessIssue)
+       Function accepts too few positional parameters; expected 3 but received 2 (reportAttributeAccessIssue)
-         Function accepts too many positional parameters; expected 0 but received 1
+         Function accepts too few positional parameters; expected 1 but received 0
-         Function accepts too many positional parameters; expected 0 but received 1
+         Function accepts too few positional parameters; expected 1 but received 0

openlibrary (https://github.com/internetarchive/openlibrary)
-       Function accepts too many positional parameters; expected 0 but received 1 (reportArgumentType)
+       Function accepts too few positional parameters; expected 1 but received 0 (reportArgumentType)
-       Function accepts too many positional parameters; expected 0 but received 1 (reportArgumentType)
+       Function accepts too few positional parameters; expected 1 but received 0 (reportArgumentType)

ignite (https://github.com/pytorch/ignite)
-       Function accepts too many positional parameters; expected 0 but received 2 (reportArgumentType)
+       Function accepts too few positional parameters; expected 2 but received 0 (reportArgumentType)
-       Function accepts too many positional parameters; expected 1 but received 2 (reportArgumentType)
+       Function accepts too few positional parameters; expected 2 but received 1 (reportArgumentType)

dd-trace-py (https://github.com/DataDog/dd-trace-py)
-       Function accepts too many positional parameters; expected 2 but received 4
+       Function accepts too few positional parameters; expected 4 but received 2

spark (https://github.com/apache/spark)
-         Function accepts too many positional parameters; expected 0 but received 1
+         Function accepts too few positional parameters; expected 1 but received 0
-         Function accepts too many positional parameters; expected 0 but received 2
+         Function accepts too few positional parameters; expected 2 but received 0
-         Function accepts too many positional parameters; expected 0 but received 1
+         Function accepts too few positional parameters; expected 1 but received 0
-         Function accepts too many positional parameters; expected 0 but received 2
+         Function accepts too few positional parameters; expected 2 but received 0
-         Function accepts too many positional parameters; expected 0 but received 1
+         Function accepts too few positional parameters; expected 1 but received 0
-         Function accepts too many positional parameters; expected 0 but received 1 (reportArgumentType)
+         Function accepts too few positional parameters; expected 1 but received 0 (reportArgumentType)
-         Function accepts too many positional parameters; expected 0 but received 1
+         Function accepts too few positional parameters; expected 1 but received 0
-         Function accepts too many positional parameters; expected 0 but received 1
+         Function accepts too few positional parameters; expected 1 but received 0
-         Function accepts too many positional parameters; expected 0 but received 1
+         Function accepts too few positional parameters; expected 1 but received 0
-         Function accepts too many positional parameters; expected 0 but received 1
+         Function accepts too few positional parameters; expected 1 but received 0
-         Function accepts too many positional parameters; expected 0 but received 1
+         Function accepts too few positional parameters; expected 1 but received 0
-         Function accepts too many positional parameters; expected 0 but received 2
+         Function accepts too few positional parameters; expected 2 but received 0
-         Function accepts too many positional parameters; expected 0 but received 3
+         Function accepts too few positional parameters; expected 3 but received 0
-         Function accepts too many positional parameters; expected 0 but received 1
+         Function accepts too few positional parameters; expected 1 but received 0
-         Function accepts too many positional parameters; expected 0 but received 2
+         Function accepts too few positional parameters; expected 2 but received 0
-         Function accepts too many positional parameters; expected 0 but received 3
+         Function accepts too few positional parameters; expected 3 but received 0
-         Function accepts too many positional parameters; expected 0 but received 1
+         Function accepts too few positional parameters; expected 1 but received 0
-         Function accepts too many positional parameters; expected 0 but received 2
+         Function accepts too few positional parameters; expected 2 but received 0
-         Function accepts too many positional parameters; expected 0 but received 3
+         Function accepts too few positional parameters; expected 3 but received 0
-       Function accepts too many positional parameters; expected 0 but received 2 (reportArgumentType)
+       Function accepts too few positional parameters; expected 2 but received 0 (reportArgumentType)
-       Function accepts too many positional parameters; expected 0 but received 2 (reportArgumentType)
+       Function accepts too few positional parameters; expected 2 but received 0 (reportArgumentType)
-       Function accepts too many positional parameters; expected 1 but received 2
+       Function accepts too few positional parameters; expected 2 but received 1
-       Function accepts too many positional parameters; expected 1 but received 2 (reportArgumentType)
+       Function accepts too few positional parameters; expected 2 but received 1 (reportArgumentType)
-       Function accepts too many positional parameters; expected 1 but received 2 (reportArgumentType)
+       Function accepts too few positional parameters; expected 2 but received 1 (reportArgumentType)
-       Function accepts too many positional parameters; expected 1 but received 2 (reportArgumentType)
+       Function accepts too few positional parameters; expected 2 but received 1 (reportArgumentType)
-       Function accepts too many positional parameters; expected 1 but received 2 (reportArgumentType)
+       Function accepts too few positional parameters; expected 2 but received 1 (reportArgumentType)

werkzeug (https://github.com/pallets/werkzeug)
-         Function accepts too many positional parameters; expected 0 but received 4
+         Function accepts too few positional parameters; expected 4 but received 0
-       Function accepts too many positional parameters; expected 0 but received 1 (reportArgumentType)
+       Function accepts too few positional parameters; expected 1 but received 0 (reportArgumentType)

cloud-init (https://github.com/canonical/cloud-init)
-             Function accepts too many positional parameters; expected 1 but received 2
+             Function accepts too few positional parameters; expected 2 but received 1

cki-lib (https://gitlab.com/cki-project/cki-lib)
-       Function accepts too many positional parameters; expected 2 but received 5 (reportArgumentType)
+       Function accepts too few positional parameters; expected 5 but received 2 (reportArgumentType)
-       Function accepts too many positional parameters; expected 2 but received 5 (reportArgumentType)
+       Function accepts too few positional parameters; expected 5 but received 2 (reportArgumentType)
-       Function accepts too many positional parameters; expected 2 but received 5 (reportArgumentType)
+       Function accepts too few positional parameters; expected 5 but received 2 (reportArgumentType)
-       Function accepts too many positional parameters; expected 2 but received 5 (reportArgumentType)
+       Function accepts too few positional parameters; expected 5 but received 2 (reportArgumentType)
-       Function accepts too many positional parameters; expected 2 but received 5 (reportArgumentType)
+       Function accepts too few positional parameters; expected 5 but received 2 (reportArgumentType)
-       Function accepts too many positional parameters; expected 2 but received 5 (reportArgumentType)
+       Function accepts too few positional parameters; expected 5 but received 2 (reportArgumentType)
-       Function accepts too many positional parameters; expected 2 but received 5 (reportArgumentType)
+       Function accepts too few positional parameters; expected 5 but received 2 (reportArgumentType)
-       Function accepts too many positional parameters; expected 2 but received 5 (reportArgumentType)
+       Function accepts too few positional parameters; expected 5 but received 2 (reportArgumentType)
-       Function accepts too many positional parameters; expected 2 but received 5 (reportArgumentType)
+       Function accepts too few positional parameters; expected 5 but received 2 (reportArgumentType)
-       Function accepts too many positional parameters; expected 2 but received 5 (reportArgumentType)
+       Function accepts too few positional parameters; expected 5 but received 2 (reportArgumentType)
-       Function accepts too many positional parameters; expected 2 but received 5 (reportArgumentType)
+       Function accepts too few positional parameters; expected 5 but received 2 (reportArgumentType)
-       Function accepts too many positional parameters; expected 2 but received 5 (reportArgumentType)
+       Function accepts too few positional parameters; expected 5 but received 2 (reportArgumentType)
-       Function accepts too many positional parameters; expected 2 but received 5 (reportArgumentType)
+       Function accepts too few positional parameters; expected 5 but received 2 (reportArgumentType)
-       Function accepts too many positional parameters; expected 2 but received 5 (reportArgumentType)
+       Function accepts too few positional parameters; expected 5 but received 2 (reportArgumentType)
-       Function accepts too many positional parameters; expected 2 but received 5 (reportArgumentType)
+       Function accepts too few positional parameters; expected 5 but received 2 (reportArgumentType)
-       Function accepts too many positional parameters; expected 2 but received 5 (reportArgumentType)
+       Function accepts too few positional parameters; expected 5 but received 2 (reportArgumentType)
-       Function accepts too many positional parameters; expected 2 but received 5 (reportArgumentType)
+       Function accepts too few positional parameters; expected 5 but received 2 (reportArgumentType)

pwndbg (https://github.com/pwndbg/pwndbg)
-       Function accepts too many positional parameters; expected 0 but received 1 (reportAttributeAccessIssue)
+       Function accepts too few positional parameters; expected 1 but received 0 (reportAttributeAccessIssue)

vision (https://github.com/pytorch/vision)
-         Function accepts too many positional parameters; expected 0 but received 1
+         Function accepts too few positional parameters; expected 1 but received 0

mitmproxy (https://github.com/mitmproxy/mitmproxy)
-       Function accepts too many positional parameters; expected 0 but received 1 (reportArgumentType)
+       Function accepts too few positional parameters; expected 1 but received 0 (reportArgumentType)

jax (https://github.com/google/jax)
-       Function accepts too many positional parameters; expected 1 but received 2
+       Function accepts too few positional parameters; expected 2 but received 1
-           Function accepts too many positional parameters; expected 0 but received 1
+           Function accepts too few positional parameters; expected 1 but received 0

@rchiodo
Rich Chiodo (rchiodo) merged commit a147f88 into main Jun 24, 2026
20 checks passed
@rchiodo

Copy link
Copy Markdown
Collaborator

GitHub cannot anchor PR review comments to unchanged lines in the diff. Falling back to a general PR comment for packages/pyright-internal/src/languageService/completionProvider.ts:L460.

Moving MRU recording off passive resolveCompletionItem into recordCompletionAccepted correctly fixes per-keystroke oscillation, but recordCompletionAccepted's only in-repo caller is the unit test. Its production caller (the accept command) lives in Pylance's asynchronousFeatures.ts, which isn't part of standalone Pyright. As a result, the pyright standalone server's _mostRecentCompletions never grows and MRU-based ranking becomes inert for standalone Pyright consumers (previously fed via the completionItem/resolve flow). Either wire an accept/resolve path in the pyright server or document MRU as Pylance-only so the dead static isn't mistaken for live behavior.

@rchiodo Rich Chiodo (rchiodo) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved via Review Center.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants