Skip to content

Fix GithubClient constructor #377

Fix GithubClient constructor

Fix GithubClient constructor #377

Triggered via pull request February 7, 2025 01:37
Status Failure
Total duration 55s
Artifacts

mypy.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
mypy: src/codegen/git/clients/git_repo_client.py#L180
error: Unused "type: ignore" comment [unused-ignore]
mypy: src/codegen/git/clients/git_repo_client.py#L181
error: Unused "type: ignore" comment [unused-ignore]
mypy: src/codegen/git/clients/git_repo_client.py#L182
error: Unused "type: ignore" comment [unused-ignore]
mypy: src/codegen/git/clients/git_repo_client.py#L227
error: Item "None" of "PullRequest | None" has no attribute "merge" [union-attr]
mypy: src/codegen/git/repo_operator/remote_repo_operator.py#L27
error: Incompatible types in assignment (expression has type "RepoConfig", base class "RepoOperator" defined the type as "BaseRepoConfig") [assignment]
mypy: src/codegen/git/repo_operator/remote_repo_operator.py#L45
error: Argument "repo_config" to "__init__" of "RepoOperator" has incompatible type "RepoConfig"; expected "BaseRepoConfig" [arg-type]
mypy: src/codegen/git/repo_operator/remote_repo_operator.py#L61
error: Argument "access_token" to "GitRepoClient" has incompatible type "str | None"; expected "str" [arg-type]
mypy: src/codegen/git/repo_operator/remote_repo_operator.py#L71
error: Signature of "codeowners_parser" incompatible with supertype "RepoOperator" [override]
mypy: src/codegen/git/repo_operator/remote_repo_operator.py#L189
error: Signature of "base_url" incompatible with supertype "RepoOperator" [override]
mypy: tests/integration/codegen/runner/conftest.py#L26
error: The return type of a generator function should be "Generator" or one of its supertypes [misc]