Skip to content

Commit e9b55eb

Browse files
mpy hack
1 parent 6ccc59f commit e9b55eb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/axiomatic/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import base64
22
import dill # type: ignore
33
import json
4-
import requests
4+
import requests # type: ignore
55
import os
66
import time
77
import json
@@ -44,15 +44,15 @@ def analyze_equations(
4444
parsed_paper: Optional[ParseResponse] = None,
4545
) -> Optional[EquationExtractionResponse]:
4646
if file_path:
47-
with open(file_path, "rb") as file:
48-
response = self._ax_client.document.equation.from_pdf(document=file)
47+
with open(file_path, "rb") as pdf_file:
48+
response = self._ax_client.document.equation.from_pdf(document=pdf_file)
4949

5050
elif url_path:
5151
if "arxiv" in url_path and "abs" in url_path:
5252
url_path = url_path.replace("abs", "pdf")
5353
file = requests.get(url_path)
5454
from io import BytesIO
55-
pdf_file = BytesIO(file.content)
55+
pdf_file = BytesIO(file.content) # type: ignore [assignment]
5656
response = self._ax_client.document.equation.from_pdf(document=pdf_file)
5757

5858
elif parsed_paper:

0 commit comments

Comments
 (0)