Skip to content

change: minor changes for UserDict API - #835

Merged
qryxip merged 2 commits into
VOICEVOX:mainfrom
qryxip:change-minor-changes-for-userdict-api
Sep 24, 2024
Merged

qryxip merged 2 commits into
VOICEVOX:mainfrom
qryxip:change-minor-changes-for-userdict-api

Conversation

@qryxip

@qryxip qryxip commented Sep 24, 2024 •

Copy link
Copy Markdown
Member

内容

UserDictのパブリックAPIについて以下の変更を加えます。

  1. loadとstoreが引数に取るファイルパスについて:
    • Rust APIでは&strからimpl AsRef<Path>にする
    • Python APIではStrPath相当にする
    • Java APIではjava.io.Fileとjava.nio.file.Pathのオーバーロードを追加する
  2. Rust APIのwith_wordsから&mut IndexMap<…>が得られるようにします。

関連 Issue

その他

本当はdictやjava.util.HashMapへ変換するやつについても手を入れたかったのですが、やるならそこそこ大々的にやった方がよいかなと思い見送りました。

@qryxip
qryxip requested a review from Hiroshiba September 24, 2024 11:32
@qryxip qryxip changed the title change: minor changes for userdict api change: minor changes for UserDict api Sep 24, 2024
@qryxip qryxip changed the title change: minor changes for UserDict api change: minor changes for UserDict API Sep 24, 2024

@Hiroshiba Hiroshiba left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

ぶっちゃけ結構雰囲気LGTMです・・・!
(Pythonは自信を持ってLGTMです)

@qryxip
qryxip merged commit 8d603d9 into VOICEVOX:main Sep 24, 2024
@qryxip
qryxip deleted the change-minor-changes-for-userdict-api branch September 24, 2024 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants