You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Coverage report with mypy is not clear and not descriptive
To Reproduce
When using mypy report or coverage on pytest the result I'm seeing is not clear
Missing 1-6 4-7 8-7 main.py
This result only shows me the lines with the problem but not what is the problem
The closest I've gotten to seeing the full issue is when using the --report in mypy or other libraries and using html
Mypy src --html-report test
When inspecting the elements I can see issues like any type not recognized or unannotated type set, but the line is usually not correct as it might be related to the definition of the var
var: Var = some_untyped_function()
var.element <---- line that failes
What can I do to make the error clearer, see exactly what failed and how to fix it if possible
Also for reference I opened the same issue in the pycoverage repository and they're saying it might be a mypy thing
I'm sorry, I don't understand what you mean. Can you please show the output you are seeing and provide a minimal snippet of code that reproduces the problem?
I need to see exactly why this isn't 100%, and this is regarding the report
The problem is mainly that I only see issues with the --report flag mypy .
Wouldn't show any issues while --report show missing lines
The best I could've gotten to show the exact issues of these lines is with --html-report, because inspecting the element show the exact problem
TLDR
I found this console.print being a problem of "explicit any type"
And I'm guessing it's because of this
Having the Console type mentioned, but I need you to help me validate that
What do I expect?
Mypy should show me the exact issues such as when console is having an explicit type
The CLI should have a way to get a detailed view these issues and what mypy thinks is the problem (here I've just stumbled upon inspection that developer tools show me the issue clearer)
Or, the command mypy src to show problems that mypy src --html-report or --xml-report or any report shows
Let me know if I'm not understanding it correctly or if there's something like this
Describe the bug
Coverage report with mypy is not clear and not descriptive
To Reproduce
When using mypy report or coverage on pytest the result I'm seeing is not clear
Missing 1-6 4-7 8-7 main.py
This result only shows me the lines with the problem but not what is the problem
The closest I've gotten to seeing the full issue is when using the --report in mypy or other libraries and using html
Mypy src --html-report test
When inspecting the elements I can see issues like any type not recognized or unannotated type set, but the line is usually not correct as it might be related to the definition of the var
var: Var = some_untyped_function()
var.element <---- line that failes
What can I do to make the error clearer, see exactly what failed and how to fix it if possible
Also for reference I opened the same issue in the pycoverage repository and they're saying it might be a mypy thing
nedbat/coveragepy#1948
The text was updated successfully, but these errors were encountered: