Skip to content

Commit 96057f9

Browse files
committed
Use List from typing
1 parent fde74ef commit 96057f9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

repo2docker/contentproviders/dataverse.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
import os
33
import shutil
44
import hashlib
5-
from urllib.parse import parse_qs, urlparse, urlunparse
5+
from urllib.parse import parse_qs, urlparse
6+
from typing import List
67

78
from ..utils import copytree, deep_get, is_doi
89
from .doi import DoiProvider
@@ -88,7 +89,7 @@ def get_dataset_id_from_file_id(self, host: str, file_id: str) -> str:
8889
data = resp.json()["data"]
8990
return data["datasetVersion"]["datasetPersistentId"]
9091

91-
def get_datafiles(self, dataverse_host: str, url: str) -> list[dict]:
92+
def get_datafiles(self, dataverse_host: str, url: str) -> List[dict]:
9293
"""
9394
Return a list of dataFiles for given persistent_id
9495

0 commit comments

Comments
 (0)