Skip to content

Commit aaae8c2

Browse files
committed
coverage/html.py: Fix linting and mypy errors
1 parent d0fccc5 commit aaae8c2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

coverage/html.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import os
1111
import re
1212
import shutil
13-
import json
1413
from collections import Counter
1514

1615
from dataclasses import dataclass
@@ -83,6 +82,7 @@ class LineData:
8382
contexts: List[str]
8483
contexts_label: str
8584
context_list: List[str]
85+
context_str: Optional[str] = None
8686
short_annotations: List[str]
8787
long_annotations: List[str]
8888
html: str = ""
@@ -387,7 +387,8 @@ def write_html_file(self, ftr: FileToReport, prev_html: str, next_html: str) ->
387387
)
388388
ldata.html = ''.join(html_parts)
389389

390-
ldata.context_str = ",".join(str(context_codes[c_context]) for c_context in ldata.context_list)
390+
ldata.context_str = ",".join(
391+
str(context_codes[c_context]) for c_context in ldata.context_list)
391392

392393
if ldata.short_annotations:
393394
# 202F is NARROW NO-BREAK SPACE.

0 commit comments

Comments
 (0)