Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

E131: Inconsistent handling of kwarg with binary operator expression as value

オープン
#673 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
tooling

調査の方向性

まず pycodestyle にあるキーワード引数の 2 つの例を再現し、それらのインデントを分類する E131 の処理を追跡します。Issue ではどの動作を変更すべきか指定されていないため、意図されたルールを確認し、実装前に受け入れられる形式と拒否される形式のテストを定義してください。

索引モデルが issue の本文から書いたものです。

説明

I think pycodestyle's handling of binary operator expressions that are the values of kwargs could be improved.

There is a case that is a little ambiguous to me as to whether it should be a style error or not. Should calls where the binary operator subexpressions are aligned with the = of the kwarg be errors? Currently, this triggers E131.

call(
  kwarg=a +
        b +
        c
)

On the other side, dropping the lines indentation to the same as the kwarg is considered valid, which seems to me to go against the spirit of the pep8 guidelines.

call(
  kwarg=a +
  b +
  c
)
主要言語
Python
スター
5.2k
フォーク
754
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PyCQA/pycodestyle のほかの issue

PyCQA/pycodestyle の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。