The Rename Method refactoring is allowed in the overridden method.
I maintainer di solito rispondono entro 7 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start from the reproduction in the issue: a MyList(list) subclass whose count overrides list.count, then apply Rename Method to MyList.count. Find where the Rename Method refactoring is implemented and how it finds the methods it renames. Done means the rename still runs but emits a warning that names the overridden superclass method. No comments or maintainer decisions exist yet, so confirm the desired warning behaviour before writing code.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The method that overrides the superclass method receives the refactoring without warning the user that there is a superclass method.
It would be nice if Rope could emit a warning in this case.
Steps to reproduce the behavior:
- Code before refactoring:
class MyList(list):
def count(self, strg, case_sensitive=False, *args, **kwargs):
return super(MyList, self).count(strg, *args, **kwargs)
- Apply the Rename Method in MyList.count().
- Lingua principale
- Python
- Stelle
- 2.2k
- Fork
- 197
- Merge medio
- 2g 13h
- PR unite (30g)
- 5
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di python-rope/rope
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
python-rope/rope#927 ·
I maintainer di solito rispondono entro 7 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
python-rope/rope#926 ·
I maintainer di solito rispondono entro 7 giorni
-
simplify.real_code blanks t-strings, so renames inside them edit the wrong offsetForse già presa @sean0407 l’ha presa 10 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
python-rope/rope#913 ·
I maintainer di solito rispondono entro 7 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
python-rope/rope#925 ·
I maintainer di solito rispondono entro 7 giorni
-
Extract method/variable and introduce parameter don't check whether the new name is already in useAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 62/100
python-rope/rope#924 ·
I maintainer di solito rispondono entro 7 giorni
Tutte le issue di python-rope/rope
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
521xueweihan/HelloGitHub#4237 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
jejjohnson/gaussx#721 ·
I maintainer di solito rispondono entro 1 giorno
-
mock-core-configs/etc/mock/rocky-10-riscv64.cfg contains the wrong architecture in config_opts['root']Forse già presa @jasonmontleon l’ha presa 4 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 94/100
rpm-software-management/mock#1834 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
elastic/elastic-otel-python#683 ·
I maintainer di solito rispondono entro 1 giorno
-
ci-rerun: collect.py fails a whole pr-babysit cycle on one transient GitHub 5xx and never retriesApertafollow-up
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno