Skip to content

Pull Pylance with Pyright 1.1.403#10687

Merged
debonte merged 1 commit intomicrosoft:mainfrom
debonte:pull-pylance-1.1.403
Jul 8, 2025
Merged

Pull Pylance with Pyright 1.1.403#10687
debonte merged 1 commit intomicrosoft:mainfrom
debonte:pull-pylance-1.1.403

Conversation

@debonte
Copy link
Contributor

@debonte debonte commented Jul 8, 2025

  • Localization update
  • Pyright changes for implementing hover using TSP in Pylance
  • Make usePullDiagnostics changeable mid-session
  • Increase minimum vscode version to 1.101.0
  • Infrastructure to support preprocessing completion items
  • Enable production signing of releases. Required by Microsoft security policy starting 8/31.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2025

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

sympy (https://github.com/sympy/sympy)
-   .../projects/sympy/sympy/utilities/codegen.py:608:47 - error: "__getitem__" method not defined on type "set[Unknown]" (reportIndexIssue)
-   .../projects/sympy/sympy/utilities/tests/test_lambdify.py:2032:45 - error: Argument of type "(e: Unknown) -> (tuple[Unknown, str] | tuple[Unknown | list[tuple[Unknown, Unknown]], list[Unknown] | set[Unknown] | tuple[Unknown, ...]] | tuple[Unknown | list[tuple[Unknown, Unknown]], dict[Unknown, Unknown]] | tuple[Unknown | list[tuple[Unknown, Unknown]], Unknown] | tuple[list[Unknown], Unknown] | tuple[list[tuple[Unknown, Unknown]], list[Unknown]] | Unknown)" cannot be assigned to parameter "cse" of type "bool" in function "lambdify"
+   .../projects/sympy/sympy/utilities/tests/test_lambdify.py:2032:45 - error: Argument of type "(e: Unknown) -> (Unknown | tuple[list[tuple[Unknown, Unknown]], list[Unknown]])" cannot be assigned to parameter "cse" of type "bool" in function "lambdify"
+   .../projects/sympy/sympy/utilities/tests/test_wester.py:402:39 - error: Cannot access attribute "q" for class "ComplexInfinity"
+     Attribute "q" is unknown (reportAttributeAccessIssue)
-   .../projects/sympy/sympy/vector/dyadic.py:233:7 - error: Base classes for class "DyadicMul" define method "as_content_primitive" in incompatible way
-     Return type mismatch: base method returns type "tuple[One, Self@Expr]", override returns type "tuple[One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Unknown, Self@Mul]"
-       "tuple[One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Unknown, Self@Mul]" is not assignable to "tuple[One, Self@Expr]"
-         Tuple entry 1 is incorrect type
-           Type "One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Unknown" is not assignable to type "One"
-             "ComplexInfinity" is not assignable to "One" (reportIncompatibleMethodOverride)
-     Return type mismatch: base method returns type "tuple[Expr, Expr]", override returns type "tuple[Self@Mul, Zero] | tuple[Zero, Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational] | tuple[Expr, Expr] | tuple[Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Unknown, Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Unknown] | tuple[Expr | Any | Unknown, Expr | Any | Unknown] | tuple[Expr | Any | Unknown | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | Number, Expr | Any | Unknown | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | Number] | None"
-       Type "tuple[Self@Mul, Zero] | tuple[Zero, Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational] | tuple[Expr, Expr] | tuple[Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Unknown, Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Unknown] | tuple[Expr | Any | Unknown, Expr | Any | Unknown] | tuple[Expr | Any | Unknown | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | Number, Expr | Any | Unknown | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | Number] | None" is not assignable to type "tuple[Expr, Expr]"
+     Return type mismatch: base method returns type "tuple[Expr, Expr]", override returns type "tuple[Self@Mul, Zero] | tuple[Zero, Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational] | tuple[Expr, Expr] | tuple[Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | _NotImplementedType, Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | _NotImplementedType] | tuple[Expr | Any | Unknown, Expr | Any | Unknown] | tuple[Expr | Any | Unknown | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | NegativeInfinity | Number | Infinity | Float, Expr | Any | Unknown | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | Number] | None"
+       Type "tuple[Self@Mul, Zero] | tuple[Zero, Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational] | tuple[Expr, Expr] | tuple[Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | _NotImplementedType, Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | _NotImplementedType] | tuple[Expr | Any | Unknown, Expr | Any | Unknown] | tuple[Expr | Any | Unknown | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | NegativeInfinity | Number | Infinity | Float, Expr | Any | Unknown | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | Number] | None" is not assignable to type "tuple[Expr, Expr]"
-   .../projects/sympy/sympy/vector/dyadic.py:253:7 - error: Base classes for class "DyadicAdd" define method "as_content_primitive" in incompatible way
-     Return type mismatch: base method returns type "tuple[One, Self@Expr]", override returns type "tuple[One | NegativeOne | Zero | Integer | Expr | Unknown | Rational | NaN | ComplexInfinity, Expr | Unknown | Self@Add]"
-       "tuple[One | NegativeOne | Zero | Integer | Expr | Unknown | Rational | NaN | ComplexInfinity, Expr | Unknown | Self@Add]" is not assignable to "tuple[One, Self@Expr]"
-         Tuple entry 1 is incorrect type
-           Type "One | NegativeOne | Zero | Integer | Expr | Unknown | Rational | NaN | ComplexInfinity" is not assignable to type "One"
-             "Expr" is not assignable to "One" (reportIncompatibleMethodOverride)
-   .../projects/sympy/sympy/vector/vector.py:316:20 - error: Operator "*" not supported for types "Unknown | TypeError | Expr | NaN | ComplexInfinity | Rational" and "Self@Vector"
+   .../projects/sympy/sympy/vector/vector.py:316:20 - error: Operator "*" not supported for types "Unknown | TypeError | Expr | NaN | ComplexInfinity | Rational | Zero | Infinity | NegativeInfinity | Float | _NotImplementedType" and "Self@Vector"
-   .../projects/sympy/sympy/vector/vector.py:496:7 - error: Base classes for class "VectorAdd" define method "as_content_primitive" in incompatible way
-     Return type mismatch: base method returns type "tuple[One, Self@Expr]", override returns type "tuple[One | NegativeOne | Zero | Integer | Expr | Unknown | Rational | NaN | ComplexInfinity, Expr | Unknown | Self@Add]"
-       "tuple[One | NegativeOne | Zero | Integer | Expr | Unknown | Rational | NaN | ComplexInfinity, Expr | Unknown | Self@Add]" is not assignable to "tuple[One, Self@Expr]"
-         Tuple entry 1 is incorrect type
-           Type "One | NegativeOne | Zero | Integer | Expr | Unknown | Rational | NaN | ComplexInfinity" is not assignable to type "One"
-             "Expr" is not assignable to "One" (reportIncompatibleMethodOverride)
-   .../projects/sympy/sympy/vector/vector.py:518:7 - error: Base classes for class "VectorMul" define method "as_content_primitive" in incompatible way
-     Return type mismatch: base method returns type "tuple[One, Self@Expr]", override returns type "tuple[One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Unknown, Self@Mul]"
-       "tuple[One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Unknown, Self@Mul]" is not assignable to "tuple[One, Self@Expr]"
-         Tuple entry 1 is incorrect type
-           Type "One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Unknown" is not assignable to type "One"
-             "ComplexInfinity" is not assignable to "One" (reportIncompatibleMethodOverride)
-     Return type mismatch: base method returns type "tuple[Expr, Expr]", override returns type "tuple[Self@Mul, Zero] | tuple[Zero, Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational] | tuple[Expr, Expr] | tuple[Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Unknown, Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Unknown] | tuple[Expr | Any | Unknown, Expr | Any | Unknown] | tuple[Expr | Any | Unknown | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | Number, Expr | Any | Unknown | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | Number] | None"
-       Type "tuple[Self@Mul, Zero] | tuple[Zero, Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational] | tuple[Expr, Expr] | tuple[Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Unknown, Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Unknown] | tuple[Expr | Any | Unknown, Expr | Any | Unknown] | tuple[Expr | Any | Unknown | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | Number, Expr | Any | Unknown | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | Number] | None" is not assignable to type "tuple[Expr, Expr]"

... (truncated 4 lines) ...

@debonte debonte merged commit 8b02aa8 into microsoft:main Jul 8, 2025
16 checks passed
@debonte debonte deleted the pull-pylance-1.1.403 branch July 8, 2025 23:31
@Roman7773838
Copy link

  • Localization update
  • Pyright changes for implementing hover using TSP in Pylance
  • Make usePullDiagnostics changeable mid-session
  • Increase minimum vscode version to 1.101.0
  • Infrastructure to support preprocessing completion items
  • Enable production signing of releases. Required by Microsoft security policy starting 8/31.

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