Explicit Variables Warning Issue
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 20.6k
- Forks
- 3.3k
- PR-Merge-Kennzahlen
- PR-Kennzahlen ausstehend
Beschreibung
Describe the bug
Coverage shows me explicit warning when being used with mypy on this:
console: Console = Console()
I don't see the problem with having an explicit type set
Why does it warn against this, can I disable it globally
Also, doing console = Console() doesn't seem to solve the problem as well
To Reproduce
How can we reproduce the problem? Please be specific. Don't link to a failing CI job. Answer the questions be
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.
Python 3.13
Mypy and Coverage
mypy src --html-report test
(Or any report)
Same result when I do coverage run mypy src
For reference I've opened a similar issue in the pycoverage repository and they told me it might be a mypy thing
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginnen Sie damit, den Bericht mit mypy src --html-report test und coverage run mypy src unter Verwendung des Python-3.13-Kontexts aus dem Issue zu reproduzieren. Vergleichen Sie die Warnung von der direkten mypy-Ausführung mit dem Aufruf über coverage und lesen Sie zur Einordnung das verknüpfte coveragepy-Issue. Erledigt bedeutet, zu identifizieren, welches Tool die Warnung ausgibt, und die zutreffende Konfiguration oder das erwartete Verhalten zu dokumentieren.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100