Skip to content

Sync Pylance changes to Pyright - #11658

Merged
Heejae Chang (heejaechang) merged 1 commit into
microsoft:mainfrom
heejaechang:pull-pylance-1.1.413-20260818-stylefix2
Aug 18, 2026
Merged

Heejae Chang (heejaechang) merged 1 commit into
microsoft:mainfrom
heejaechang:pull-pylance-1.1.413-20260818-stylefix2

Conversation

@heejaechang

Copy link
Copy Markdown
Collaborator

Synchronizes Pylance compatibility changes with the current Pyright codebase.

REVIEWER: Review only Pyright/Pylance synchronization and compatibility changes in this PR; do not leave unrelated feedback.

@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)
-   .../projects/ibis/ibis/common/annotations.py:653:13 - error: Cannot assign to attribute "__signature__" for class "_Wrapped[..., object, ..., Unknown | Any]"
+   .../projects/ibis/ibis/common/annotations.py:653:13 - error: Cannot assign to attribute "__signature__" for class "_Wrapped[..., object, ..., object | Unknown | Any]"
-   .../projects/ibis/ibis/common/patterns.py:1406:21 - error: Cannot access attribute "__signature__" for class "_Wrapped[..., object, ..., Unknown | Any]"
+   .../projects/ibis/ibis/common/patterns.py:1406:21 - error: Cannot access attribute "__signature__" for class "_Wrapped[..., object, ..., object | Unknown | Any]"
-   .../projects/ibis/ibis/expr/builders.py:197:22 - error: Type "Unknown | Cast" is not assignable to declared type "RowsWindowBoundary | None"
+   .../projects/ibis/ibis/expr/builders.py:197:22 - error: Type "RowsWindowBoundary | Cast | None" is not assignable to declared type "RowsWindowBoundary | None"
-     Type "Unknown | Cast" is not assignable to type "RowsWindowBoundary | None"
+     Type "RowsWindowBoundary | Cast | None" is not assignable to type "RowsWindowBoundary | None"
-   .../projects/ibis/ibis/expr/builders.py:197:22 - error: Type "Cast | Unknown" is not assignable to declared type "RowsWindowBoundary | None"
+   .../projects/ibis/ibis/expr/builders.py:197:22 - error: Type "Cast | RowsWindowBoundary | None" is not assignable to declared type "RowsWindowBoundary | None"
-     Type "Cast | Unknown" is not assignable to type "RowsWindowBoundary | None"
+     Type "Cast | RowsWindowBoundary | None" is not assignable to type "RowsWindowBoundary | None"
-   .../projects/ibis/ibis/expr/builders.py:205:22 - error: Type "Unknown | Cast" is not assignable to declared type "RangeWindowBoundary | None"
+   .../projects/ibis/ibis/expr/builders.py:205:22 - error: Type "RangeWindowBoundary | Cast | None" is not assignable to declared type "RangeWindowBoundary | None"
-     Type "Unknown | Cast" is not assignable to type "RangeWindowBoundary | None"
+     Type "RangeWindowBoundary | Cast | None" is not assignable to type "RangeWindowBoundary | None"
-   .../projects/ibis/ibis/expr/builders.py:205:22 - error: Type "Cast | Unknown" is not assignable to declared type "RangeWindowBoundary | None"
+   .../projects/ibis/ibis/expr/builders.py:205:22 - error: Type "Cast | RangeWindowBoundary | None" is not assignable to declared type "RangeWindowBoundary | None"
-     Type "Cast | Unknown" is not assignable to type "RangeWindowBoundary | None"
+     Type "Cast | RangeWindowBoundary | None" is not assignable to type "RangeWindowBoundary | None"
-   .../projects/ibis/ibis/expr/builders.py:213:22 - error: Type "Unknown | Cast" is not assignable to declared type "RangeWindowBoundary | None"
+   .../projects/ibis/ibis/expr/builders.py:213:22 - error: Type "RangeWindowBoundary | Cast | None" is not assignable to declared type "RangeWindowBoundary | None"
-     Type "Unknown | Cast" is not assignable to type "RangeWindowBoundary | None"
+     Type "RangeWindowBoundary | Cast | None" is not assignable to type "RangeWindowBoundary | None"
-   .../projects/ibis/ibis/expr/builders.py:213:22 - error: Type "Cast | Unknown" is not assignable to declared type "RangeWindowBoundary | None"
+   .../projects/ibis/ibis/expr/builders.py:213:22 - error: Type "Cast | RangeWindowBoundary | None" is not assignable to declared type "RangeWindowBoundary | None"
-     Type "Cast | Unknown" is not assignable to type "RangeWindowBoundary | None"
+     Type "Cast | RangeWindowBoundary | None" is not assignable to type "RangeWindowBoundary | None"
-   .../projects/ibis/ibis/expr/types/arrays.py:530:66 - error: Argument of type "object | Unknown" cannot be assigned to parameter "body" of type "Value[Unknown, Any]" in function "__init__"
-     Type "object | Unknown" is not assignable to type "Value[Unknown, Any]"
-       "object" is not assignable to "Value[Unknown, Any]" (reportArgumentType)
-   .../projects/ibis/ibis/expr/types/arrays.py:641:69 - error: Argument of type "object | Unknown" cannot be assigned to parameter "body" of type "Value[Boolean, Any]" in function "__init__"
-     Type "object | Unknown" is not assignable to type "Value[Boolean, Any]"
-       "object" is not assignable to "Value[Boolean, Any]" (reportArgumentType)
- 7532 errors, 260 warnings, 0 informations
+ 7530 errors, 260 warnings, 0 informations

sympy (https://github.com/sympy/sympy)
+ An internal error occurred while type checking file ".../projects/sympy/sympy/solvers/solveset.py": TypeError: Cannot read properties of undefined (reading 'isStubFile')
+     at t.applyClassDecorator (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/decorators.ts:317:43)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:19391:21
+     at nu (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:23378:28)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:19390:42
+     at t.invalidateTypeCacheIfCanceled (...pyright_to_test/packages/pyright/dist/pyright-internal/src/common/cancellationUtils.ts:38:16)
+     at az (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:18731:16)
+     at n_ (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:23918:39)
+     at nP (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:24976:50)
+     at nA (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:24543:32)
+     at nS (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:24527:16)
+     at no (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:23174:24)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:19148:51
+     at t.invalidateTypeCacheIfCanceled (...pyright_to_test/packages/pyright/dist/pyright-internal/src/common/cancellationUtils.ts:38:16)
+     at az (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:18731:16)
+     at n_ (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:23918:39)
+     at nI (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:24310:30)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:24797:32
+     at Array.forEach (<anonymous>)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:24793:15
+     at nA (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:24784:5)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:5173:39
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:5312:5
+     at eB (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:1617:5)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9008:30
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9130:5
+     at nu (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:23378:28)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:1425:30
+     at eB (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:1617:5)
+     at aD (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:18379:35)
+     at a7 (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22220:25)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:24390:17
+     at a9 (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22358:9)
+     at a8 (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22327:16)
+     at nI (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:24389:32)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:24797:32
+     at Array.forEach (<anonymous>)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:24793:15
+     at nA (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:24784:5)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:5173:39
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:5312:5
+     at eB (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:1617:5)
+     at ns (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:23165:16)
+     at e$ (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:2145:32)
+     at eG (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:2104:16)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:20340:41
+     at Array.forEach (<anonymous>)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:20307:27
+     at t.invalidateTypeCacheIfCanceled (...pyright_to_test/packages/pyright/dist/pyright-internal/src/common/cancellationUtils.ts:38:16)
+     at aK (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:20247:16)
+     at aW (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:20096:28)
+     at n_ (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:23927:42)
+     at nI (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:24310:30)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:24797:32
+     at Array.forEach (<anonymous>)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:24793:15
+     at nA (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:24784:5)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:5173:39
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:5312:5
+     at eB (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:1617:5)
+     at n.timeOperation (...pyright_to_test/packages/pyright/dist/pyright-internal/src/common/timing.ts:40:20)
+     at t.applyClassDecorator (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/decorators.ts:322:37)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:19391:21
+     at nu (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:23378:28)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:19390:42
+ Error performing analysis: TypeError: Cannot read properties of undefined (reading 'isStubFile')
+     at t.applyClassDecorator (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/decorators.ts:317:43)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:19391:21
+     at nu (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:23378:28)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:19390:42
+     at t.invalidateTypeCacheIfCanceled (...pyright_to_test/packages/pyright/dist/pyright-internal/src/common/cancellationUtils.ts:38:16)
+     at az (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:18731:16)
+     at n_ (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:23918:39)
+     at nP (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:24976:50)
+     at nA (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:24543:32)
+     at nS (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:24527:16)
+     at no (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:23174:24)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:19148:51
+     at t.invalidateTypeCacheIfCanceled (...pyright_to_test/packages/pyright/dist/pyright-internal/src/common/cancellationUtils.ts:38:16)
+     at az (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:18731:16)
+     at n_ (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:23918:39)
+     at nI (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:24310:30)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:24797:32
+     at Array.forEach (<anonymous>)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:24793:15
+     at nA (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:24784:5)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:5173:39
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:5312:5
+     at eB (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:1617:5)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9008:30
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9130:5
+     at nu (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:23378:28)

... (truncated 83917 lines) ...

scikit-learn (https://github.com/scikit-learn/scikit-learn)
-   .../projects/scikit-learn/sklearn/cluster/tests/test_hierarchical.py:109:14 - error: Object of type "_Wrapped[..., Unknown, ..., Unknown]" cannot be used with "with" because it does not correctly implement __enter__
+   .../projects/scikit-learn/sklearn/cluster/tests/test_hierarchical.py:109:14 - error: Object of type "_Wrapped[..., Any, ..., Any | object]" cannot be used with "with" because it does not correctly implement __enter__
-   .../projects/scikit-learn/sklearn/cluster/tests/test_hierarchical.py:109:14 - error: Object of type "_Wrapped[..., Unknown, ..., Unknown]" cannot be used with "with" because it does not correctly implement __exit__
+   .../projects/scikit-learn/sklearn/cluster/tests/test_hierarchical.py:109:14 - error: Object of type "_Wrapped[..., Any, ..., Any | object]" cannot be used with "with" because it does not correctly implement __exit__
-   .../projects/scikit-learn/sklearn/cluster/tests/test_hierarchical.py:117:18 - error: Object of type "_Wrapped[..., Unknown, ..., Unknown]" cannot be used with "with" because it does not correctly implement __enter__
+   .../projects/scikit-learn/sklearn/cluster/tests/test_hierarchical.py:117:18 - error: Object of type "_Wrapped[..., Any, ..., Any | object]" cannot be used with "with" because it does not correctly implement __enter__
-   .../projects/scikit-learn/sklearn/cluster/tests/test_hierarchical.py:117:18 - error: Object of type "_Wrapped[..., Unknown, ..., Unknown]" cannot be used with "with" because it does not correctly implement __exit__
+   .../projects/scikit-learn/sklearn/cluster/tests/test_hierarchical.py:117:18 - error: Object of type "_Wrapped[..., Any, ..., Any | object]" cannot be used with "with" because it does not correctly implement __exit__
+   .../projects/scikit-learn/sklearn/cluster/tests/test_hierarchical.py:688:16 - error: "__getitem__" method not defined on type "object" (reportIndexIssue)
-   .../projects/scikit-learn/sklearn/compose/tests/test_column_transformer.py:2243:32 - error: Cannot access attribute "columns" for class "NDArray[Unknown]"
-     Attribute "columns" is unknown (reportAttributeAccessIssue)
-     Attribute "index" is unknown (reportAttributeAccessIssue)
-   .../projects/scikit-learn/sklearn/compose/tests/test_column_transformer.py:2244:32 - error: Cannot access attribute "index" for class "NDArray[Unknown]"
-     Attribute "dtypes" is unknown (reportAttributeAccessIssue)
-   .../projects/scikit-learn/sklearn/compose/tests/test_column_transformer.py:2331:34 - error: Cannot access attribute "dtypes" for class "NDArray[Unknown]"
-   .../projects/scikit-learn/sklearn/decomposition/tests/test_dict_learning.py:257:14 - error: Object of type "_Wrapped[..., Unknown, ..., Unknown]" cannot be used with "with" because it does not correctly implement __enter__
+   .../projects/scikit-learn/sklearn/decomposition/tests/test_dict_learning.py:257:14 - error: Object of type "_Wrapped[..., Any, ..., Any | object]" cannot be used with "with" because it does not correctly implement __enter__
-   .../projects/scikit-learn/sklearn/decomposition/tests/test_dict_learning.py:257:14 - error: Object of type "_Wrapped[..., Unknown, ..., Unknown]" cannot be used with "with" because it does not correctly implement __exit__
+   .../projects/scikit-learn/sklearn/decomposition/tests/test_dict_learning.py:257:14 - error: Object of type "_Wrapped[..., Any, ..., Any | object]" cannot be used with "with" because it does not correctly implement __exit__
+   .../projects/scikit-learn/sklearn/decomposition/tests/test_dict_learning.py:604:17 - error: Cannot access attribute "shape" for class "object"
+     Attribute "shape" is unknown (reportAttributeAccessIssue)
+   .../projects/scikit-learn/sklearn/decomposition/tests/test_dict_learning.py:667:5 - error: Object of type "object" is not callable
+     Attribute "__call__" is unknown (reportCallIssue)
+   .../projects/scikit-learn/sklearn/decomposition/tests/test_dict_learning.py:668:5 - error: Object of type "object" is not callable
+     Attribute "__call__" is unknown (reportCallIssue)
+   .../projects/scikit-learn/sklearn/decomposition/tests/test_dict_learning.py:670:9 - error: Argument of type "_Wrapped[..., Unknown, ..., Unknown] | Any | object" cannot be assigned to parameter "func" of type "(...) -> _T@partial" in function "__new__"
+     Type "_Wrapped[..., Unknown, ..., Unknown] | Any | object" is not assignable to type "(...) -> _T@partial"
+       Type "object" is not assignable to type "(...) -> _T@partial" (reportArgumentType)
+   .../projects/scikit-learn/sklearn/decomposition/tests/test_dict_learning.py:673:5 - error: Object of type "object" is not callable
+     Attribute "__call__" is unknown (reportCallIssue)
-   .../projects/scikit-learn/sklearn/decomposition/tests/test_fastica.py:453:14 - error: Object of type "_Wrapped[..., Unknown, ..., Unknown]" cannot be used with "with" because it does not correctly implement __enter__
+   .../projects/scikit-learn/sklearn/decomposition/tests/test_fastica.py:453:14 - error: Object of type "_Wrapped[..., Any, ..., Any | object]" cannot be used with "with" because it does not correctly implement __enter__
-   .../projects/scikit-learn/sklearn/decomposition/tests/test_fastica.py:453:14 - error: Object of type "_Wrapped[..., Unknown, ..., Unknown]" cannot be used with "with" because it does not correctly implement __exit__
+   .../projects/scikit-learn/sklearn/decomposition/tests/test_fastica.py:453:14 - error: Object of type "_Wrapped[..., Any, ..., Any | object]" cannot be used with "with" because it does not correctly implement __exit__
+     Attribute "shape" is unknown (reportAttributeAccessIssue)
+   .../projects/scikit-learn/sklearn/ensemble/_hist_gradient_boosting/tests/test_gradient_boosting.py:514:22 - error: No overloads for "unique" match the provided arguments (reportCallIssue)
+   .../projects/scikit-learn/sklearn/ensemble/_hist_gradient_boosting/tests/test_gradient_boosting.py:514:32 - error: Argument of type "Unknown | ndarray[_AnyShape, dtype[Unknown]] | Any | list[Unknown] | list[Unknown | NDArray[Unknown] | Any | list[Unknown]] | None" cannot be assigned to parameter "ar" of type "ArrayLike" in function "unique"
+     Type "Unknown | ndarray[_AnyShape, dtype[Unknown]] | Any | list[Unknown] | list[Unknown | NDArray[Unknown] | Any | list[Unknown]] | None" is not assignable to type "ArrayLike"
+           "__array__" is not present
+           "__len__" is not present
+     ... (reportArgumentType)
+   .../projects/scikit-learn/sklearn/ensemble/_hist_gradient_boosting/tests/test_gradient_boosting.py:519:20 - error: "shape" is not a known attribute of "None" (reportOptionalMemberAccess)
+   .../projects/scikit-learn/sklearn/ensemble/_hist_gradient_boosting/tests/test_gradient_boosting.py:519:20 - error: Cannot access attribute "shape" for class "list[Unknown]"
+     Attribute "shape" is unknown (reportAttributeAccessIssue)
+   .../projects/scikit-learn/sklearn/ensemble/_hist_gradient_boosting/tests/test_gradient_boosting.py:519:20 - error: Cannot access attribute "shape" for class "list[Unknown | NDArray[Unknown] | Any | list[Unknown]]"
-   .../projects/scikit-learn/sklearn/ensemble/tests/test_forest.py:1153:10 - error: Object of type "_Wrapped[..., Unknown, ..., Unknown]" cannot be used with "with" because it does not correctly implement __enter__
+   .../projects/scikit-learn/sklearn/ensemble/tests/test_forest.py:1153:10 - error: Object of type "_Wrapped[..., Any, ..., Any | object]" cannot be used with "with" because it does not correctly implement __enter__
-   .../projects/scikit-learn/sklearn/ensemble/tests/test_forest.py:1153:10 - error: Object of type "_Wrapped[..., Unknown, ..., Unknown]" cannot be used with "with" because it does not correctly implement __exit__
+   .../projects/scikit-learn/sklearn/ensemble/tests/test_forest.py:1153:10 - error: Object of type "_Wrapped[..., Any, ..., Any | object]" cannot be used with "with" because it does not correctly implement __exit__
-   .../projects/scikit-learn/sklearn/ensemble/tests/test_iforest.py:43:10 - error: Object of type "_Wrapped[..., Unknown, ..., Unknown]" cannot be used with "with" because it does not correctly implement __enter__
+   .../projects/scikit-learn/sklearn/ensemble/tests/test_iforest.py:43:10 - error: Object of type "_Wrapped[..., Any, ..., Any | object]" cannot be used with "with" because it does not correctly implement __enter__
-   .../projects/scikit-learn/sklearn/ensemble/tests/test_iforest.py:43:10 - error: Object of type "_Wrapped[..., Unknown, ..., Unknown]" cannot be used with "with" because it does not correctly implement __exit__
+   .../projects/scikit-learn/sklearn/ensemble/tests/test_iforest.py:43:10 - error: Object of type "_Wrapped[..., Any, ..., Any | object]" cannot be used with "with" because it does not correctly implement __exit__
-   .../projects/scikit-learn/sklearn/ensemble/tests/test_stacking.py:476:10 - error: Object of type "_Wrapped[..., Unknown, ..., Unknown]" cannot be used with "with" because it does not correctly implement __enter__
+   .../projects/scikit-learn/sklearn/ensemble/tests/test_stacking.py:476:10 - error: Object of type "_Wrapped[..., Any, ..., Any | object]" cannot be used with "with" because it does not correctly implement __enter__
-   .../projects/scikit-learn/sklearn/ensemble/tests/test_stacking.py:476:10 - error: Object of type "_Wrapped[..., Unknown, ..., Unknown]" cannot be used with "with" because it does not correctly implement __exit__
+   .../projects/scikit-learn/sklearn/ensemble/tests/test_stacking.py:476:10 - error: Object of type "_Wrapped[..., Any, ..., Any | object]" cannot be used with "with" because it does not correctly implement __exit__

... (truncated 535 lines) ...

mkdocs (https://github.com/mkdocs/mkdocs)
-   .../projects/mkdocs/mkdocs/contrib/search/search_index.py:75:31 - error: Argument of type "weak_property | Unknown" cannot be assigned to parameter "title" of type "str | None" in function "_add_entry"
+   .../projects/mkdocs/mkdocs/contrib/search/search_index.py:75:31 - error: Argument of type "Self@weak_property | Unknown" cannot be assigned to parameter "title" of type "str | None" in function "_add_entry"
-     Type "weak_property | Unknown" is not assignable to type "str | None"
+     Type "Self@weak_property | Unknown" is not assignable to type "str | None"
-       Type "weak_property" is not assignable to type "str | None"
+       Type "Self@weak_property" is not assignable to type "str | None"
-         "weak_property" is not assignable to "str"
+         "weak_property*" is not assignable to "str"
-         "weak_property" is not assignable to "None" (reportArgumentType)
+         "weak_property*" is not assignable to "None" (reportArgumentType)
-   .../projects/mkdocs/mkdocs/structure/pages.py:186:40 - error: Argument of type "weak_property | Unknown" cannot be assigned to parameter "p" of type "AnyOrLiteralStr@splitext" in function "splitext"
+   .../projects/mkdocs/mkdocs/structure/pages.py:186:40 - error: Argument of type "Self@weak_property | Unknown" cannot be assigned to parameter "p" of type "AnyOrLiteralStr@splitext" in function "splitext"
-     Type "weak_property | Unknown" is not assignable to constrained type variable "AnyOrLiteralStr" (reportArgumentType)
+     Type "Self@weak_property | Unknown" is not assignable to constrained type variable "AnyOrLiteralStr" (reportArgumentType)
-   .../projects/mkdocs/mkdocs/structure/pages.py:190:29 - error: Operator "+" not supported for types "str" and "weak_property | Unknown"
+   .../projects/mkdocs/mkdocs/structure/pages.py:190:29 - error: Operator "+" not supported for types "str" and "Self@weak_property | Unknown"
-     Operator "+" not supported for types "str" and "weak_property" (reportOperatorIssue)
+     Operator "+" not supported for types "str" and "weak_property*" (reportOperatorIssue)

comtypes (https://github.com/enthought/comtypes)
-   .../projects/comtypes/comtypes/test/test_server_automation.py:57:9 - error: Expression with type "tuple[Any | datetime | _Pointer[IUnknown] | _Pointer[IDispatch] | <subclass of _Pointer[IDispatch] and _Dispatch> | _Dispatch | Dispatch | VARIANT | Sequence[Any] | None, int] | list[Unknown]" cannot be assigned to target tuple
+   .../projects/comtypes/comtypes/test/test_server_automation.py:57:9 - error: Expression with type "tuple[Any | datetime | _Pointer[IUnknown] | _Pointer[IDispatch] | <subclass of _Pointer[IDispatch] and _Dispatch> | _Dispatch | Dispatch | VARIANT | Sequence[Any] | None, int] | list[Any]" cannot be assigned to target tuple

core (https://github.com/home-assistant/core)
+ An internal error occurred while type checking file ".../projects/core/homeassistant/components/playstation_network/__init__.py": Error: Debug Failure. Did not find evaluation scope
+     at w (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/parseTreeUtils.ts:1035:5)
+     at Object.t.getExecutionScopeNode (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/parseTreeUtils.ts:1079:27)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:23232:58
+     at Array.find (<anonymous>)
+     at np (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:23222:76)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:5124:31
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:5312:5
+     at eB (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:1617:5)
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:7406:32
+     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:7502:5
+     at eB (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:1617:5)
+     at ns (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:23165:16)
+     at e$ (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:2145:32)
+     at n_ (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:24003:40)
+     at nP (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:24976:50)
+     at e1 (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:3071:26)
+     at e1 (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:3094:24)
+     at aD (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:18371:32)
+     at a7 (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22220:25)
+     at n.timeOperation (...pyright_to_test/packages/pyright/dist/pyright-internal/src/common/timing.ts:40:20)
+     at W.visitAssignment (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/checker.ts:1182:25)
+     at W.visit (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/parseTreeWalker.ts:122:29)
+     at W.visitNode (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/parseTreeWalker.ts:694:21)
+     at W.walk (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/parseTreeWalker.ts:676:37)

... (truncated 429 lines) ...```

@heejaechang
Heejae Chang (heejaechang) merged commit 7ddd3b1 into microsoft:main Aug 18, 2026
16 checks passed
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.

2 participants