Skip to content

CI: add pyright checking workflow #6

CI: add pyright checking workflow

CI: add pyright checking workflow #6

Triggered via pull request January 24, 2025 06:47
@yanyongyuyanyongyu
synchronize #185
ci/pyright
Status Failure
Total duration 2m 5s
Artifacts

pyright.yml

on: pull_request
Matrix: Pyright Lint
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 2 warnings
Pyright Lint (pydantic-v1): githubkit/core.py#L283
Argument of type "QueryParamTypes | None" cannot be assigned to parameter "params" of type "QueryParamTypes | None" in function "build_request"   Type "githubkit.typing.QueryParamTypes | None" is not assignable to type "httpx._types.QueryParamTypes | None"     Type "Sequence[tuple[str, PrimitiveData]]" is not assignable to type "QueryParamTypes | None"       "Sequence[tuple[str, PrimitiveData]]" is not assignable to "QueryParams"       "Sequence[tuple[str, PrimitiveData]]" is not assignable to "Mapping[str, PrimitiveData | Sequence[PrimitiveData]]"       "Sequence[tuple[str, PrimitiveData]]" is not assignable to "List[Tuple[str, PrimitiveData]]"       "Sequence[tuple[str, PrimitiveData]]" is not assignable to "Tuple[Tuple[str, PrimitiveData], ...]"       "Sequence[tuple[str, PrimitiveData]]" is not assignable to "str"       "Sequence[tuple[str, PrimitiveData]]" is not assignable to "bytes" ... (reportArgumentType)
Pyright Lint (pydantic-v1): githubkit/core.py#L319
Argument of type "QueryParamTypes | None" cannot be assigned to parameter "params" of type "QueryParamTypes | None" in function "build_request"   Type "githubkit.typing.QueryParamTypes | None" is not assignable to type "httpx._types.QueryParamTypes | None"     Type "Sequence[tuple[str, PrimitiveData]]" is not assignable to type "QueryParamTypes | None"       "Sequence[tuple[str, PrimitiveData]]" is not assignable to "QueryParams"       "Sequence[tuple[str, PrimitiveData]]" is not assignable to "Mapping[str, PrimitiveData | Sequence[PrimitiveData]]"       "Sequence[tuple[str, PrimitiveData]]" is not assignable to "List[Tuple[str, PrimitiveData]]"       "Sequence[tuple[str, PrimitiveData]]" is not assignable to "Tuple[Tuple[str, PrimitiveData], ...]"       "Sequence[tuple[str, PrimitiveData]]" is not assignable to "str"       "Sequence[tuple[str, PrimitiveData]]" is not assignable to "bytes" ... (reportArgumentType)
Pyright Lint (pydantic-v1): githubkit/versions/v2022_11_28/rest/repos.py#L11706
Overload 6 for "update_information_about_pages_site" will never be used because its parameters overlap overload 5 (reportOverlappingOverload)
Pyright Lint (pydantic-v1)
3 errors
Pyright Lint (pydantic-v2): githubkit/core.py#L283
Argument of type "QueryParamTypes | None" cannot be assigned to parameter "params" of type "QueryParamTypes | None" in function "build_request"   Type "githubkit.typing.QueryParamTypes | None" is not assignable to type "httpx._types.QueryParamTypes | None"     Type "Sequence[tuple[str, PrimitiveData]]" is not assignable to type "QueryParamTypes | None"       "Sequence[tuple[str, PrimitiveData]]" is not assignable to "QueryParams"       "Sequence[tuple[str, PrimitiveData]]" is not assignable to "Mapping[str, PrimitiveData | Sequence[PrimitiveData]]"       "Sequence[tuple[str, PrimitiveData]]" is not assignable to "List[Tuple[str, PrimitiveData]]"       "Sequence[tuple[str, PrimitiveData]]" is not assignable to "Tuple[Tuple[str, PrimitiveData], ...]"       "Sequence[tuple[str, PrimitiveData]]" is not assignable to "str"       "Sequence[tuple[str, PrimitiveData]]" is not assignable to "bytes" ... (reportArgumentType)
Pyright Lint (pydantic-v2): githubkit/core.py#L319
Argument of type "QueryParamTypes | None" cannot be assigned to parameter "params" of type "QueryParamTypes | None" in function "build_request"   Type "githubkit.typing.QueryParamTypes | None" is not assignable to type "httpx._types.QueryParamTypes | None"     Type "Sequence[tuple[str, PrimitiveData]]" is not assignable to type "QueryParamTypes | None"       "Sequence[tuple[str, PrimitiveData]]" is not assignable to "QueryParams"       "Sequence[tuple[str, PrimitiveData]]" is not assignable to "Mapping[str, PrimitiveData | Sequence[PrimitiveData]]"       "Sequence[tuple[str, PrimitiveData]]" is not assignable to "List[Tuple[str, PrimitiveData]]"       "Sequence[tuple[str, PrimitiveData]]" is not assignable to "Tuple[Tuple[str, PrimitiveData], ...]"       "Sequence[tuple[str, PrimitiveData]]" is not assignable to "str"       "Sequence[tuple[str, PrimitiveData]]" is not assignable to "bytes" ... (reportArgumentType)
Pyright Lint (pydantic-v2): githubkit/versions/v2022_11_28/rest/repos.py#L11706
Overload 6 for "update_information_about_pages_site" will never be used because its parameters overlap overload 5 (reportOverlappingOverload)
Pyright Lint (pydantic-v2)
3 errors
Pyright Lint (pydantic-v1)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Pyright Lint (pydantic-v2)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636