Skip to content

Commit 30991b6

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0403856 commit 30991b6

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/decoupler/_download.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import io
22
import time
3+
from importlib.metadata import version
34

45
import pandas as pd
56
import requests
67
from tqdm import tqdm
78

89
from decoupler._log import _log
9-
from importlib.metadata import version
1010

1111
URL_DBS = "https://omnipathdb.org/annotations?databases="
1212
URL_INT = "https://omnipathdb.org/interactions/?genesymbols=1&"
@@ -20,9 +20,7 @@ def _download_chunks(
2020
# Download with progress bar
2121
chunks = []
2222
__version__ = version("decoupler")
23-
headers = {
24-
'User-Agent': f'decoupler/{__version__} (https://github.com/scverse/decoupler)'
25-
}
23+
headers = {"User-Agent": f"decoupler/{__version__} (https://github.com/scverse/decoupler)"}
2624
with requests.get(url, stream=True, headers=headers) as r:
2725
r.raise_for_status()
2826
with tqdm(unit="B", unit_scale=True, desc="Progress", disable=not verbose) as pbar:

0 commit comments

Comments
 (0)