Merged
Conversation
Merged
Hiroshiba
approved these changes
Oct 17, 2023
takana-v
pushed a commit
to voicevox-bridge/bridge-plugin
that referenced
this pull request
Nov 28, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
内容
上のPRにより、mypy 0.991による型チェック時に非対応の構文に遭遇して以下のようなエラーが出て、型チェックが中断されるようになります。
このPRでは、mypyを最新のmypy 1.6.0に更新します。上のエラーが解消されます。
mypyは、mypy 0.991 (2022-11-08)の次にmypy 1.0 (2023-02-06)がリリースされ、新しいバージョン付けのルールが設定されました(詳細を確認したい場合、mypy 1.0のリリースノートを参照)。以前のバージョニングルールは、mypy 0.470 (2017-01-13)から、PyPI上のパッケージ名
mypyの取得に伴う干渉回避のために導入されていたようです。他のlintライブラリに合わせて、バージョン制約の記号を
~から^に変更しました(poetry updateでパッチバージョンのみ更新から、マイナーバージョンを更新するように変更。Poetryのバージョン制約記法ドキュメント)。このPR後に
poetry updateを実行した場合、mypy>=1.6.0, <2.0.0の範囲で更新されます(^1.x.yと記述した場合の仕様。Poetryのバージョン制約記法ドキュメント)。関連 Issue
スクリーンショット・動画など
その他