You don't need to raise NotImplementedError for abstract methods

オープン
#100,400 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
35/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python
領域
documentation

調査の方向性

Doc/library/exceptions.rst の引用されているセクションから始め、NotImplementedError の前後のドキュメントを読んでください。テキストが抽象メソッドと ABCs をどのように説明しているかを確認し、そのうえで、ドキュメントの説明が issue に記載された動作と一致するよう更新してください。関連するドキュメントが正確で、標準ライブラリの ABC の動作と一貫していれば完了です。

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

説明

docs

Documentation

In the documentation for NotImplementedError, we see the following:

https://github.com/python/cpython/blob/a7715ccfba5b86ab09f86ec56ac3755c93b46b48/Doc/library/exceptions.rst?plain=1#L299-L304

If "abstract base classes" are meant to mean ABCs from the standard library, this is unnecessary as the ABC metaclass will prohibit instantiation of any derived class that doesn't implement an abstract method. Indeed, adding a raise would be dead code that would flaunt, say, coverage metrics.

主要言語
Python
スター
77.2k
フォーク
36k
平均マージ
1日 9時間
マージ済み PR(30日)
558

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

python/cpython のほかの issue

python/cpython の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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