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
The html report for checking coverage of the situation from Issue #2776 misrepresents the unchecked code lines. Specifically, the example is
class A(object): pass
class C(object): pass
def bar(x):
# type: (A) -> None
reveal_type(x)
assert isinstance(x, C)
reveal_type(x)
The report generated by --html-report indicates that the whole file is covered, even though the second reveal_type produces no output (which problem itself is #2776). Inspecting the source indicates that the second reveal_type is classified as "line-empty", which visually looks like "line-precise", and in this circumstance is misleading.
The text was updated successfully, but these errors were encountered:
Due to the bug in #2776 it is treating that line as dead code. Maybe we
should have a different color for dead code (as opposed to empty
lines/comments/docstrings and the line).
The html report for checking coverage of the situation from Issue #2776 misrepresents the unchecked code lines. Specifically, the example is
The report generated by
--html-report
indicates that the whole file is covered, even though the secondreveal_type
produces no output (which problem itself is #2776). Inspecting the source indicates that the secondreveal_type
is classified as "line-empty", which visually looks like "line-precise", and in this circumstance is misleading.The text was updated successfully, but these errors were encountered: