Skip to content

CI: add pyright checking workflow #7

CI: add pyright checking workflow

CI: add pyright checking workflow #7

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

pyright.yml

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

Annotations

12 errors and 3 warnings
GitHubKit 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)
GitHubKit 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)
GitHubKit 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)
GitHubKit Lint (pydantic-v1)
3 errors
GitHubKit 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)
GitHubKit 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)
GitHubKit 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)
GitHubKit Lint (pydantic-v2)
3 errors
Codegen Lint: 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)
Codegen Lint: 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)
Codegen Lint: 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)
Codegen Lint
3 errors
GitHubKit Lint (pydantic-v1)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
GitHubKit Lint (pydantic-v2)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Codegen Lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636