Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change: minor changes for UserDict API #835

Merged
merged 2 commits into from
Sep 24, 2024

Conversation

qryxip
Copy link
Member

@qryxip qryxip commented Sep 24, 2024

内容

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

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

関連 Issue

その他

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

@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
Copy link
Member

@Hiroshiba Hiroshiba left a comment

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
31 checks passed
@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