fix(python): added stubs

code inspection now works with fourdst
This commit is contained in:
2025-11-25 11:54:08 -05:00
parent a799957f3e
commit a55a661b39
14 changed files with 604 additions and 48 deletions

View File

@@ -21,10 +21,31 @@ py_mod = py_installation.extension_module(
)
py_installation.install_sources(
meson.project_source_root() + '/src-pybind/fourdst/__init__.py',
files(
meson.project_source_root() + '/src-pybind/fourdst/__init__.pyi',
meson.project_source_root() + '/src-pybind/fourdst/__init__.py',
),
subdir: 'fourdst',
)
py_installation.install_sources(
files(
meson.project_source_root() + '/src-pybind/fourdst/_phys/__init__.pyi',
meson.project_source_root() + '/src-pybind/fourdst/_phys/atomic.pyi',
meson.project_source_root() + '/src-pybind/fourdst/_phys/config.pyi',
meson.project_source_root() + '/src-pybind/fourdst/_phys/constants.pyi',
),
subdir: 'fourdst/',
)
py_installation.install_sources(
files(
meson.project_source_root() + '/src-pybind/fourdst/_phys/composition/__init__.pyi',
meson.project_source_root() + '/src-pybind/fourdst/_phys/composition/utils.pyi',
),
subdir: 'fourdst/composition',
)
py_installation.install_sources(
files(
meson.project_source_root() + '/src-pybind/fourdst/cli/__init__.py',