Skip to content

Commit 612045b

Browse files
fix mypy
1 parent e9b55eb commit 612045b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/axiomatic/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ def analyze_equations(
5050
elif url_path:
5151
if "arxiv" in url_path and "abs" in url_path:
5252
url_path = url_path.replace("abs", "pdf")
53-
file = requests.get(url_path)
53+
url_file = requests.get(url_path)
5454
from io import BytesIO
55-
pdf_file = BytesIO(file.content) # type: ignore [assignment]
56-
response = self._ax_client.document.equation.from_pdf(document=pdf_file)
55+
pdf_stream = BytesIO(url_file.content)
56+
response = self._ax_client.document.equation.from_pdf(document=pdf_stream)
5757

5858
elif parsed_paper:
5959
response = EquationExtractionResponse.model_validate(

0 commit comments

Comments
 (0)