(🐞) An error should be reported when `reveal_type` is used but not called
Aperta
Nessuno ha ancora preso questa issue.
feature
priority-2-low
topic-reveal-type
- Lingua principale
- Python
- Stelle
- 20.6k
- Fork
- 3.3k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
reveal_type
not_defined
main.py:2:1: error: Name "not_defined" is not defined [name-defined]
Found 1 error in 1 file (checked 1 source file)
Issue:
When reveal_type is called (reveal_type(1)) mypy reports a note and exits with status 1, but when reveal_type is used as a value without being called mypy doesn't report any error or note.
reveal_type
actual:
Success: no issues found in 1 source file
expected:
main.py:1:1: error: reveal_type must be called [misc]
Found 1 error in 1 file (checked 1 source file)
Guida per i contributori
Apri 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.
Direzione di ricerca
Inizia riproducendo l’esempio reveal_type in main.py e traccia il modo in cui mypy gestisce reveal_type(1) rispetto a un’espressione reveal_type isolata. Il lavoro è completato quando l’uso isolato segnala reveal_type must be called [misc] e la forma chiamata esistente continua a segnalare la sua nota.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- compilers
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 55/100