Remove `allow_unknown' for build_target functions - #15412
Merged
dcbaker merged 5 commits intoJan 9, 2026
Conversation
…targets include_directories, dependencies, and link_with are all valid for jar targets as well as compiled targets.
This fixes the SharedLibrary preventing the SharedModule from being used.
We know all of the keyword arguments now! This also allows them to be removed from wrappers
These were hidden by the `if 'sources' in kwargs` check, which mypy thought would always be true, and thus it just ignored everything else. Of course, these issues are just the static type checking not understanding...
dcbaker
force-pushed
the
submit/remove-build-target-allow-unknown
branch
from
January 6, 2026 19:42
88fb158 to
e516e1e
Compare
bonzini
approved these changes
Jan 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is #15406, but without the cleanups for python which trigger bugs in mypy 1.8. As such, we can't merge that PR until mypy is unpinned.