Skip to content

Commit

Permalink
coverage/html.py: Fix linting and mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
abo-abo committed Mar 20, 2023
1 parent d0fccc5 commit 53b9967
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions coverage/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import os
import re
import shutil
import json
from collections import Counter

from dataclasses import dataclass
Expand Down Expand Up @@ -86,6 +85,7 @@ class LineData:
short_annotations: List[str]
long_annotations: List[str]
html: str = ""
context_str: Optional[str] = None
annotate: Optional[str] = None
annotate_long: Optional[str] = None
css_class: str = ""
Expand Down Expand Up @@ -387,7 +387,8 @@ def write_html_file(self, ftr: FileToReport, prev_html: str, next_html: str) ->
)
ldata.html = ''.join(html_parts)

ldata.context_str = ",".join(str(context_codes[c_context]) for c_context in ldata.context_list)
ldata.context_str = ",".join(
str(context_codes[c_context]) for c_context in ldata.context_list)

if ldata.short_annotations:
# 202F is NARROW NO-BREAK SPACE.
Expand Down

0 comments on commit 53b9967

Please sign in to comment.