General issue - `py/not-named-cls` should trigger for implicit class methods
Aperta
Python
question
- Lingua principale
- CodeQL
- Stelle
- 10.1k
- Fork
- 2.1k
- Merge medio
- 2g 15h
- PR unite (30g)
- 141
Descrizione
**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
```
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.