Prevent `@dataclass` from being called twice on the same class
オープン
@ericvsmith がすでに取り組んでいます。
2022年5月3日 から。
3.11
stdlib
topic-dataclasses
type-feature
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 36k
- PR マージ指標
- PR 指標を取得中
説明
Currently it's possible to do this:
@dataclass(repr=False)
@dataclass(repr=True)
class C:
pass
This is confusing at best, and will produce unexpected classes at worst.
With this change, that will become an error.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。