General issue - `py/not-named-cls` should trigger for implicit class methods
オープン
Python
question
- 主要言語
- CodeQL
- スター
- 10.1k
- フォーク
- 2.1k
- 平均マージ
- 2日 15時間
- マージ済み PR(30日)
- 141
説明
**Description of the issue**
`py/not-named-cls` should trigger for wrong first arg name for special method names that implicitly make the methods class methods.
For example:
```py
class Example:
def __init_subclass__(self): # should error and say to use `cls` instead
pass
def __class_getitem__(self): # should error and say to use `cls` instead
pass
```
コントリビューションガイド
評価
この issue はまだ評価されていません。