Skip to content

Commit f2951f3

Browse files
committed
Lints
1 parent 1e42e5e commit f2951f3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Diff for: olmocr/bench/katex/render.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import os
1717
import pathlib
1818
import re
19-
import shutil
2019
import sqlite3
2120
import threading
2221
import unittest
@@ -28,6 +27,7 @@
2827

2928
# --- New SQLite Cache Implementation ---
3029

30+
3131
class EquationCache:
3232
def __init__(self, db_path: Optional[str] = None):
3333
if db_path is None:
@@ -44,14 +44,16 @@ def _init_db(self):
4444
conn = sqlite3.connect(self.db_path)
4545
c = conn.cursor()
4646
# Added an 'error' column to store rendering errors
47-
c.execute('''
47+
c.execute(
48+
"""
4849
CREATE TABLE IF NOT EXISTS equations (
4950
eq_hash TEXT PRIMARY KEY,
5051
mathml TEXT,
5152
spans TEXT,
5253
error TEXT
5354
)
54-
''')
55+
"""
56+
)
5557
conn.commit()
5658
conn.close()
5759

@@ -126,6 +128,7 @@ def clear(self):
126128
# Thread-local storage for Playwright and browser instances
127129
_thread_local = threading.local()
128130

131+
129132
@dataclass
130133
class BoundingBox:
131134
x: float

0 commit comments

Comments
 (0)