Skip to content

Commit 4e13bca

Browse files
authored
Pyright/Pylanceに対応する (#719)
1 parent f184995 commit 4e13bca

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

crates/voicevox_core_python_api/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ build-backend = "maturin"
2222
[tool.isort]
2323
profile = "black"
2424

25+
[tool.pyright]
26+
executionEnvironments = [{ root = "python/test" }, { root = "python" }]
27+
2528
[tool.maturin]
2629
module-name = "voicevox_core._rust"
2730
bindings = "pyo3"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# pyright: reportMissingModuleSource=false
12
from ._rust.asyncio import OpenJtalk, Synthesizer, UserDict, VoiceModel
23

34
__all__ = ["OpenJtalk", "Synthesizer", "UserDict", "VoiceModel"]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# pyright: reportMissingModuleSource=false
12
from ._rust.blocking import OpenJtalk, Synthesizer, UserDict, VoiceModel
23

34
__all__ = ["OpenJtalk", "Synthesizer", "UserDict", "VoiceModel"]

0 commit comments

Comments
 (0)