Skip to content

Conversation

@dcbaker
Copy link
Member

@dcbaker dcbaker commented Dec 18, 2025

This is cleanups made possible by the fully typed build_target arguments.

The first patch moves some things that apply to jar into the shared-with-jar state. This was hidden by the allow_unknown=True.

Then there's some cleanups for the simd module since we can now be sure that no extra keyword arguments are passed

Finally, we can clean up the python module and get the fully type safe.

…targets

include_directories, dependencies, and link_with are all valid for jar
targets as well as compiled targets.
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 fixes the SharedLibrary preventing the SharedModule from being
used.
This cleans up the typing by creating a new dictionary instead of
mutating the one passed in. This gives better typing controls. I've also
adding some missing keyword argument annotations, and done some casting
because lists are invariant.
@dcbaker dcbaker force-pushed the submit/fully-typed-build-arguments-cleanups branch from bccbaf9 to cfd350e Compare December 18, 2025 20:53
@dcbaker
Copy link
Member Author

dcbaker commented Dec 18, 2025

Sigh, none of the mypy issues can be demonstrated on my machine. This must be a mypy 1.8 issue.

Maybe after the new years.

@dcbaker dcbaker added this to the 1.12 milestone Dec 19, 2025
@dcbaker
Copy link
Member Author

dcbaker commented Dec 19, 2025

Cannot be merged until mypy is unpinned, so it will have to wait to 1.12

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