Skip to content

Commit

Permalink
PyO3をv0.20.3に更新
Browse files Browse the repository at this point in the history
  • Loading branch information
qryxip committed Feb 24, 2024
1 parent 0ad71b0 commit 7ac5d70
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 27 deletions.
47 changes: 28 additions & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ ouroboros = "0.18.0"
parse-display = "0.8.2"
pretty_assertions = "1.3.0"
proc-macro2 = "1.0.69"
pyo3 = "0.19.2"
pyo3-asyncio = "0.19.0"
pyo3 = "0.20.3"
pyo3-asyncio = "0.20.0"
pyo3-log = "0.9.0"
quote = "1.0.33"
rayon = "1.6.1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from pathlib import Path
from os import PathLike
from typing import TYPE_CHECKING, Dict, List, Literal, Union
from uuid import UUID

Expand All @@ -18,7 +18,7 @@ class VoiceModel:
音声モデル。"""

@staticmethod
async def from_path(path: Union[Path, str]) -> VoiceModel:
async def from_path(path: Union[PathLike, str]) -> VoiceModel:
"""
VVMファイルから ``VoiceModel`` を生成する。
Expand All @@ -43,7 +43,7 @@ class OpenJtalk:
"""

@staticmethod
async def new(open_jtalk_dict_dir: Union[Path, str]) -> "OpenJtalk":
async def new(open_jtalk_dict_dir: Union[PathLike, str]) -> "OpenJtalk":
"""
``OpenJTalk`` を生成する。
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from pathlib import Path
from os import PathLike
from typing import TYPE_CHECKING, Dict, List, Literal, Union
from uuid import UUID

Expand All @@ -18,7 +18,7 @@ class VoiceModel:
音声モデル。"""

@staticmethod
def from_path(path: Union[Path, str]) -> VoiceModel:
def from_path(path: Union[PathLike, str]) -> VoiceModel:
"""
VVMファイルから ``VoiceModel`` を生成する。
Expand Down Expand Up @@ -47,7 +47,7 @@ class OpenJtalk:
Open JTalkの辞書ディレクトリ。
"""

def __init__(self, open_jtalk_dict_dir: Union[Path, str]) -> None: ...
def __init__(self, open_jtalk_dict_dir: Union[PathLike, str]) -> None: ...
def use_user_dict(self, user_dict: UserDict) -> None:
"""
ユーザー辞書を設定する。
Expand Down

0 comments on commit 7ac5d70

Please sign in to comment.