Skip to content

Commit e341510

Browse files
committed
fix(benchmark): Lint
1 parent 8a225d3 commit e341510

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

benchmark/benchmark.py

+8-5
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
import sys
99
from io import StringIO
1010
from pathlib import Path
11+
from typing import Any, Dict
1112

1213
from matplotlib import pyplot as plt # type: ignore
1314

14-
from eyecite import clean_text, get_citations
15+
from eyecite import get_citations
1516

1617
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
1718
sys.path.append(os.path.dirname(SCRIPT_DIR))
@@ -45,20 +46,22 @@ def generate_branch_report(self, branch: str) -> None:
4546
now = datetime.datetime.now()
4647
data = []
4748
for row in csv_data:
48-
text = (
49+
text: str = (
4950
row["xml_harvard"]
5051
or row["html_lawbox"]
5152
or row["html_columbia"]
5253
or row["html_anon_2020"]
5354
or row["html"]
5455
)
55-
params = {"clean_steps": ["html", "inline_whitespace"]}
56+
params: Dict[str, Any] = {
57+
"clean_steps": ["html", "inline_whitespace"]
58+
}
5659
if text:
5760
# Remove XML encodings from xml_harvard
5861
text = re.sub(r"^<\?xml.*?\?>", "", text, count=1)
59-
params['markup_text'] = text or ""
62+
params["markup_text"] = text or ""
6063
else:
61-
params['markup_text'] = row['plain_text']
64+
params["markup_text"] = row["plain_text"]
6265

6366
found_citations = get_citations(**params)
6467

0 commit comments

Comments
 (0)