Skip to content

Config changes to use our custom stubs #188

Config changes to use our custom stubs

Config changes to use our custom stubs #188

Triggered via push October 25, 2024 18:28
Status Failure
Total duration 51s
Artifacts

pyright.yml

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

Annotations

5 errors and 20 warnings
pyright (3.8, ubuntu-latest): setuptools/__init__.py#L224
Type "Unknown | Any | Command | None" is not assignable to return type "Command"   Type "Unknown | Any | Command | None" is not assignable to type "Command"     "None" is not assignable to "Command" (reportReturnType)
pyright (3.8, ubuntu-latest)
1 error
pyright (3.12, ubuntu-latest)
The job was canceled because "_3_8_ubuntu-latest" failed.
pyright (3.12, ubuntu-latest): setuptools/__init__.py#L224
Type "Unknown | Any | Command | None" is not assignable to return type "Command"   Type "Unknown | Any | Command | None" is not assignable to type "Command"     "None" is not assignable to "Command" (reportReturnType)
pyright (3.12, ubuntu-latest)
1 error
pyright (3.8, ubuntu-latest): setuptools/tests/test_core_metadata.py#L180
Cannot access attribute "get_metadata_version" for class "type[DistributionMetadata]"   Attribute "get_metadata_version" is unknown (reportAttributeAccessIssue)
pyright (3.8, ubuntu-latest): setuptools/tests/test_core_metadata.py#L375
Argument of type "list[str] | None" cannot be assigned to parameter "strs" of type "_StrOrIter" in function "parse"   Type "list[str] | None" is not assignable to type "_StrOrIter"     Type "None" is not assignable to type "_StrOrIter"       "None" is not assignable to "str"       "None" is incompatible with protocol "Iterable[str]"         "__iter__" is not present (reportArgumentType)
pyright (3.8, ubuntu-latest): setuptools/tests/test_core_metadata.py#L376
Argument of type "list[str] | None" cannot be assigned to parameter "iterable" of type "Iterable[_T@set]" in function "__init__"   Type "list[str] | None" is not assignable to type "Iterable[str]"     "None" is incompatible with protocol "Iterable[str]"       "__iter__" is not present (reportArgumentType)
pyright (3.8, ubuntu-latest): setup.py#L79
No overloads for "relpath" match the provided arguments (reportCallIssue)
pyright (3.8, ubuntu-latest): setup.py#L79
Argument of type "Unknown | None" cannot be assigned to parameter "path" of type "StrPath" in function "relpath"   Type "Unknown | 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.8, ubuntu-latest): setuptools/command/bdist_egg.py#L106
"egg_info" is not a known attribute of "None" (reportOptionalMemberAccess)
pyright (3.8, ubuntu-latest): setuptools/command/bdist_egg.py#L109
"bdist_base" is not a known attribute of "None" (reportOptionalMemberAccess)
pyright (3.8, ubuntu-latest): setuptools/command/bdist_egg.py#L121
"_get_egg_basename" is not a known attribute of "None" (reportOptionalMemberAccess)
pyright (3.8, ubuntu-latest): setuptools/command/bdist_egg.py#L126
No overloads for "join" match the provided arguments (reportCallIssue)
pyright (3.8, ubuntu-latest): setuptools/command/bdist_egg.py#L126
Argument of type "None" cannot be assigned to parameter "a" of type "BytesPath" in function "join"   Type "None" is not assignable to type "BytesPath"     "None" is not assignable to "bytes"     "None" is incompatible with protocol "PathLike[bytes]"       "__fspath__" is not present (reportArgumentType)
pyright (3.12, ubuntu-latest): setuptools/tests/test_core_metadata.py#L180
Cannot access attribute "get_metadata_version" for class "type[DistributionMetadata]"   Attribute "get_metadata_version" is unknown (reportAttributeAccessIssue)
pyright (3.12, ubuntu-latest): setuptools/tests/test_core_metadata.py#L375
Argument of type "list[str] | None" cannot be assigned to parameter "strs" of type "_StrOrIter" in function "parse"   Type "list[str] | None" is not assignable to type "_StrOrIter"     Type "None" is not assignable to type "_StrOrIter"       "None" is not assignable to "str"       "None" is incompatible with protocol "Iterable[str]"         "__iter__" is not present (reportArgumentType)
pyright (3.12, ubuntu-latest): setuptools/tests/test_core_metadata.py#L376
Argument of type "list[str] | None" cannot be assigned to parameter "iterable" of type "Iterable[_T@set]" in function "__init__"   Type "list[str] | None" is not assignable to type "Iterable[str]"     "None" is incompatible with protocol "Iterable[str]"       "__iter__" is not present (reportArgumentType)
pyright (3.12, ubuntu-latest): setuptools/command/bdist_egg.py#L106
"egg_info" is not a known attribute of "None" (reportOptionalMemberAccess)
pyright (3.12, ubuntu-latest): setuptools/command/bdist_egg.py#L109
"bdist_base" is not a known attribute of "None" (reportOptionalMemberAccess)
pyright (3.12, ubuntu-latest): setuptools/command/bdist_egg.py#L121
"_get_egg_basename" is not a known attribute of "None" (reportOptionalMemberAccess)
pyright (3.12, ubuntu-latest): setuptools/command/bdist_egg.py#L126
No overloads for "join" match the provided arguments (reportCallIssue)
pyright (3.12, ubuntu-latest): setuptools/command/bdist_egg.py#L126
Argument of type "None" cannot be assigned to parameter "a" of type "BytesPath" in function "join"   Type "None" is not assignable to type "BytesPath"     "None" is not assignable to "bytes"     "None" is incompatible with protocol "PathLike[bytes]"       "__fspath__" is not present (reportArgumentType)
pyright (3.12, ubuntu-latest): setuptools/command/bdist_egg.py#L130
"install_lib" is not a known attribute of "None" (reportOptionalMemberAccess)
pyright (3.12, ubuntu-latest): setuptools/command/bdist_egg.py#L133
Cannot assign to attribute "data_files" for class "Distribution"   Expression of type "list[Unknown]" cannot be assigned to attribute "data_files" of class "Distribution"     "list[Unknown]" is not assignable to "None" (reportAttributeAccessIssue)