Skip to content

[Waiting for distutils sync] Generate distutils-stubs on install #1452

[Waiting for distutils sync] Generate distutils-stubs on install

[Waiting for distutils sync] Generate distutils-stubs on install #1452

Triggered via pull request November 2, 2025 16:17
Status Failure
Total duration 44s
Artifacts

pyright.yml

on: pull_request
Matrix: pyright
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 10 warnings
pyright (3.9, ubuntu-latest)
1 error
pyright (3.9, ubuntu-latest): setuptools/__init__.py#L110
Type "Distribution" is not assignable to return type "Distribution"   "distutils.dist.Distribution" is not assignable to "setuptools.dist.Distribution" (reportReturnType)
pyright (3.13, ubuntu-latest)
The strategy configuration was canceled because "pyright._3_9_ubuntu-latest" failed
pyright (3.13, ubuntu-latest)
The operation was canceled.
pyright (3.9, ubuntu-latest): setuptools/tests/test_build_ext.py#L147
Cannot assign to attribute "editable_mode" for class "build_ext"   Attribute "editable_mode" is unknown (reportAttributeAccessIssue)
pyright (3.9, ubuntu-latest): setuptools/tests/test_build_ext.py#L132
Cannot access attribute "get_output_mapping" for class "build_ext"   Attribute "get_output_mapping" is unknown (reportAttributeAccessIssue)
pyright (3.9, ubuntu-latest): setuptools/tests/test_build_ext.py#L128
Cannot assign to attribute "editable_mode" for class "build_ext"   Attribute "editable_mode" is unknown (reportAttributeAccessIssue)
pyright (3.9, ubuntu-latest): setuptools/tests/test_build_ext.py#L124
Cannot access attribute "get_output_mapping" for class "build_ext"   Attribute "get_output_mapping" is unknown (reportAttributeAccessIssue)
pyright (3.9, ubuntu-latest): setuptools/tests/test_build_ext.py#L115
Cannot assign to attribute "editable_mode" for class "build_ext"   Attribute "editable_mode" is unknown (reportAttributeAccessIssue)
pyright (3.9, ubuntu-latest): setuptools/tests/test_build_ext.py#L53
Argument of type "int | str | None" cannot be assigned to parameter "suffix" of type "str | tuple[str, ...]" in function "endswith"   Type "int | str | None" is not assignable to type "str | tuple[str, ...]"     Type "int" is not assignable to type "str | tuple[str, ...]"       "int" is not assignable to "str"       "int" is not assignable to "tuple[str, ...]" (reportArgumentType)
pyright (3.9, ubuntu-latest): _distutils_hack/__init__.py#L215
Expression value is unused (reportUnusedExpression)
pyright (3.9, ubuntu-latest): _distutils_hack/__init__.py#L76
Operator "in" not supported for types "Literal['_distutils']" and "str | None"   Operator "in" not supported for types "Literal['_distutils']" and "None" (reportOperatorIssue)
pyright (3.9, ubuntu-latest): setup.py#L51
Argument of type "str | None" cannot be assigned to parameter "path" of type "StrPath" in function "relpath"   Type "str | None" is not assignable to type "StrPath"     Type "None" is not assignable to type "StrPath"       "None" is not assignable to "str"       "None" is incompatible with protocol "PathLike[str]"         "__fspath__" is not present (reportArgumentType)
pyright (3.9, ubuntu-latest): setup.py#L51
No overloads for "relpath" match the provided arguments (reportCallIssue)