Skip to content

Conversation

@dcbaker
Copy link
Member

@dcbaker dcbaker commented Dec 19, 2025

Built on top of #15412

This is just some low hanging fruit.

…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...
This has far reaching effects, so there's lots of related changes.
There's probably more issues related to this in untyped modules. I
haven't touched those.
It's in Target, but only valid for BuildTarget. It's also typed
incorrectly so it's a wonder if it even works, as we pass a string into
a place that needs an OptionKey
Don't put build_target stuff in the Target definition.
@dcbaker dcbaker requested a review from jpakkane as a code owner December 19, 2025 20:50
@dcbaker dcbaker added the typing label Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant