Skip to content

Commit

Permalink
Pyright/Pylanceに対応する (#719)
Browse files Browse the repository at this point in the history
  • Loading branch information
qryxip committed Jan 1, 2024
1 parent f184995 commit 4e13bca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/voicevox_core_python_api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyright: reportMissingModuleSource=false
from ._rust.asyncio import OpenJtalk, Synthesizer, UserDict, VoiceModel

__all__ = ["OpenJtalk", "Synthesizer", "UserDict", "VoiceModel"]
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyright: reportMissingModuleSource=false
from ._rust.blocking import OpenJtalk, Synthesizer, UserDict, VoiceModel

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

0 comments on commit 4e13bca

Please sign in to comment.