From f3d9a71a1bea661495c1d3c6004b26b4497fb1c9 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 21 Oct 2025 13:58:03 -0700 Subject: modules/python: use typed_kwargs for `install_dir` This `install_dir` is slightly different than the one in `BuildTarget` (though I'd like to make them the same in the future). It is only allowed to be `str | bool | None`, and the implementation has always assumed this, it would have broken with an array value. --- docs/markdown/Python-module.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs/markdown') diff --git a/docs/markdown/Python-module.md b/docs/markdown/Python-module.md index 66081762d..8fa99fba7 100644 --- a/docs/markdown/Python-module.md +++ b/docs/markdown/Python-module.md @@ -130,6 +130,9 @@ the addition of the following: Additionally, the following diverge from [[shared_module]]'s default behavior: +- `install_dir` may only be a string, boolean, or unset, but an `array` is not + allowed. + - `gnu_symbol_visibility`: if unset, it will default to `'hidden'` on versions of Python that support this (the python headers define `PyMODINIT_FUNC` has default visibility). -- cgit v1.2.3