Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some gnome module bugs spotted by mypy #9369

Merged
merged 3 commits into from Oct 8, 2021

Conversation

dcbaker
Copy link
Member

@dcbaker dcbaker commented Oct 7, 2021

I have a larger branch fully type annotating and using the various `typed_*' decorators, but that's probably not going to be ready before 0.60 is released, and these are real bugs that should be fixed asap.

Theere is no 'output' key in the kwargs, so if this was it it would
result in an exception. Mypy spotted this in a branch I'm working on
full typing for gnome, but since that seems unlikely to be done before
the 0.60 branchpoint I'd like to get this in sooner
It's impossible to get a Holder here, we'd get the unholdered build
types. Mypy points this out for us.
@dcbaker dcbaker added this to the 0.59.3 milestone Oct 7, 2021
@dcbaker dcbaker requested a review from xclaesse October 7, 2021 16:28
@dcbaker dcbaker requested a review from jpakkane as a code owner October 7, 2021 16:28
@dcbaker dcbaker linked an issue Oct 7, 2021 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Oct 7, 2021

Codecov Report

Merging #9369 (464d3d3) into master (dfec438) will decrease coverage by 0.00%.
The diff coverage is 33.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9369      +/-   ##
==========================================
- Coverage   67.04%   67.03%   -0.01%     
==========================================
  Files         394      394              
  Lines       85274    85280       +6     
  Branches    17423    17425       +2     
==========================================
- Hits        57171    57169       -2     
- Misses      23421    23427       +6     
- Partials     4682     4684       +2     
Impacted Files Coverage Δ
mesonbuild/modules/gnome.py 71.19% <33.33%> (-0.18%) ⬇️
mesonbuild/scripts/vcstagger.py 87.50% <0.00%> (-4.17%) ⬇️
modules/gnome.py 70.43% <0.00%> (-0.18%) ⬇️
mesonlib/universal.py 75.60% <0.00%> (-0.09%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dfec438...464d3d3. Read the comment docs.

install_dir needs to be set to something, because CustomTarget expects
that. genmarshal still relies on CustomTarget setting it internally
itself.

Fixes mesonbuild#9350
@xclaesse xclaesse merged commit 3f8c78b into mesonbuild:master Oct 8, 2021
@dcbaker dcbaker deleted the submit/gnome-bug-fixes branch October 8, 2021 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Throws exception instead of parsing error
2 participants