diff --git a/crates/voicevox_core_python_api/pyproject.toml b/crates/voicevox_core_python_api/pyproject.toml index 5ad0bd6d8..428e7695f 100644 --- a/crates/voicevox_core_python_api/pyproject.toml +++ b/crates/voicevox_core_python_api/pyproject.toml @@ -22,6 +22,9 @@ build-backend = "maturin" [tool.isort] profile = "black" +[tool.pyright] +executionEnvironments = [{ root = "python/test" }, { root = "python" }] + [tool.maturin] module-name = "voicevox_core._rust" bindings = "pyo3" diff --git a/crates/voicevox_core_python_api/python/voicevox_core/asyncio.py b/crates/voicevox_core_python_api/python/voicevox_core/asyncio.py index fec0c831b..75b160814 100644 --- a/crates/voicevox_core_python_api/python/voicevox_core/asyncio.py +++ b/crates/voicevox_core_python_api/python/voicevox_core/asyncio.py @@ -1,3 +1,4 @@ +# pyright: reportMissingModuleSource=false from ._rust.asyncio import OpenJtalk, Synthesizer, UserDict, VoiceModel __all__ = ["OpenJtalk", "Synthesizer", "UserDict", "VoiceModel"] diff --git a/crates/voicevox_core_python_api/python/voicevox_core/blocking.py b/crates/voicevox_core_python_api/python/voicevox_core/blocking.py index e378037c3..80f61fdcb 100644 --- a/crates/voicevox_core_python_api/python/voicevox_core/blocking.py +++ b/crates/voicevox_core_python_api/python/voicevox_core/blocking.py @@ -1,3 +1,4 @@ +# pyright: reportMissingModuleSource=false from ._rust.blocking import OpenJtalk, Synthesizer, UserDict, VoiceModel __all__ = ["OpenJtalk", "Synthesizer", "UserDict", "VoiceModel"]