8000 Fix another crash with report generation on namespace packages by hauntsaninja · Pull Request #14063 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Fix another crash with report generation on namespace packages #14063

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 11, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
black
  • Loading branch information
hauntsaninja committed Nov 11, 2022
commit c437c211b1b87aac6f77aafb4451637d44ebf887
4 changes: 1 addition & 3 deletions mypy/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,9 +663,7 @@ def on_file(
if branch:
line_element.attrib["condition-coverage"] = "50% (1/2)"
class_element.attrib["branch-rate"] = "0"
class_element.attrib["line-rate"] = get_line_rate(
class_lines_covered, class_total_lines
)
class_element.attrib["line-rate"] = get_line_rate(class_lines_covered, class_total_lines)
# parent_module is set to whichever module contains this file. For most files, we want
# to simply strip the last element off of the module. But for __init__.py files,
# the module == the parent module.
Expand Down
0