From 4e13bca5a55a08d7aea08af4f949462bd284b1c1 Mon Sep 17 00:00:00 2001 From: Ryo Yamashita Date: Mon, 1 Jan 2024 09:37:46 +0900 Subject: [PATCH] =?UTF-8?q?Pyright/Pylance=E3=81=AB=E5=AF=BE=E5=BF=9C?= =?UTF-8?q?=E3=81=99=E3=82=8B=20(#719)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/voicevox_core_python_api/pyproject.toml | 3 +++ .../voicevox_core_python_api/python/voicevox_core/asyncio.py | 1 + .../voicevox_core_python_api/python/voicevox_core/blocking.py | 1 + 3 files changed, 5 insertions(+) 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"]