Skip to content

Commit

Permalink
Make ruff happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Bouni committed Jul 31, 2024
1 parent a2dda1e commit 56710a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lcsc_api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import requests # pylint: disable=import-error
"""Unofficial LCSC API."""
import io
from pathlib import Path

import requests # pylint: disable=import-error


class LCSC_API:
"""Unofficial LCSC API."""
Expand Down Expand Up @@ -43,4 +45,3 @@ def download_datasheet(self, url: str, path: Path):
with open(path, "wb") as f:
f.write(r.content)
return {"success": True, "msg": "Successfully downloaded datasheet!"}

0 comments on commit 56710a2

Please sign in to comment.