Skip to content

Conversation

qryxip
Copy link
Member

@qryxip qryxip commented Mar 5, 2025

内容

#960 を見越し、引数と返り値の形に関してリファクタを行う。

関連 Issue

その他

こないだDiscordで言ってた間違えてgit restoreで吹っ飛ばしたやつから、記憶をベースにもう一度よく考えた上、リファクタ部分を抽出したものです。

@qryxip qryxip requested a review from Hiroshiba March 5, 2025 18:20
@qryxip qryxip force-pushed the pr/refactor-python-prepare-for-issue960 branch from 8639245 to a1ec8f3 Compare March 5, 2025 18:42
@qryxip qryxip force-pushed the pr/refactor-python-prepare-for-issue960 branch from a1ec8f3 to cb8a17a Compare March 5, 2025 18:50
@Hiroshiba
Copy link
Member

Hiroshiba commented Mar 6, 2025

0.16のリリースには不要なのでドキュメントの完成が先、という認識です!
レビューやマージはその後でということで・・・!

@Hiroshiba
Copy link
Member

↑のコメントですが、release-0.16ブランチを作るならそうでもないと思ったのでちょっと0.16 issueの方にコメントしました!

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!!

こちらを0.16に含めたいと @qryxip さんから伺ったのでレビューしてみました!
含めて大丈夫だと思います!

from_dataclass(ob)
}

pub(crate) fn from_accent_phrases(ob: &Bound<'_, PyAny>) -> PyResult<Vec<AccentPhrase>> {
Copy link
Member

Choose a reason for hiding this comment

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

(ただのコメントです)

これ、複数形じゃないfrom_accent_phraseを作る方が一般的かなと思いましたが、Vecを返すコードにしておくと結構行数が減るぽいので、まあこちらでも良いのかなと思いました!

@qryxip qryxip merged commit f8e96e7 into VOICEVOX:main Mar 7, 2025
34 checks passed
@qryxip qryxip deleted the pr/refactor-python-prepare-for-issue960 branch March 7, 2025 17:56
qryxip added a commit that referenced this pull request Mar 8, 2025
シリアライズ機構はまだ実装しない。

Resolves: #960
See-also: #1029
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