Skip to content

More typing annotations for ninjabackend.py#15791

Merged
bonzini merged 20 commits into
mesonbuild:masterfrom
bonzini:mypy-ninja-pt2
May 11, 2026
Merged

More typing annotations for ninjabackend.py#15791
bonzini merged 20 commits into
mesonbuild:masterfrom
bonzini:mypy-ninja-pt2

Conversation

@bonzini
Copy link
Copy Markdown
Contributor

@bonzini bonzini commented May 8, 2026

Down to 50 errors.

@bonzini bonzini force-pushed the mypy-ninja-pt2 branch 2 times, most recently from 071caff to e189968 Compare May 8, 2026 17:46
@bonzini bonzini changed the title Mypy ninja pt2 More typing annotations for ninjabackend.py May 8, 2026
@bonzini bonzini marked this pull request as ready for review May 8, 2026 17:46
@bonzini bonzini requested review from dcbaker and jpakkane as code owners May 8, 2026 17:46
@bonzini bonzini force-pushed the mypy-ninja-pt2 branch 2 times, most recently from a98aeaa to 7362d02 Compare May 8, 2026 18:12
bonzini added 5 commits May 9, 2026 07:20
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This fixes some complaints from mypy about extra being (possibly)
passed via both **options and the explicit keyword arguments.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
bonzini added 9 commits May 10, 2026 12:39
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
…ra_rpaths

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Just enough to stop mypy from reporting errors about Any.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Copy link
Copy Markdown
Member

@dcbaker dcbaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of small nits, but in general this looks good.

Comment thread mesonbuild/backend/ninjabackend.py
Comment thread mesonbuild/linkers/linkers.py Outdated
Comment thread mesonbuild/backend/backends.py Outdated
Comment thread mesonbuild/backend/ninjabackend.py Outdated
Comment thread mesonbuild/build.py Outdated
bonzini added 5 commits May 11, 2026 18:07
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
@bonzini bonzini merged commit d9c0cb1 into mesonbuild:master May 11, 2026
28 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants