Skip to content

Commit

Permalink
Use List from typing
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Dec 17, 2024
1 parent fde74ef commit 96057f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions repo2docker/contentproviders/dataverse.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import os
import shutil
import hashlib
from urllib.parse import parse_qs, urlparse, urlunparse
from urllib.parse import parse_qs, urlparse
from typing import List

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

def get_datafiles(self, dataverse_host: str, url: str) -> list[dict]:
def get_datafiles(self, dataverse_host: str, url: str) -> List[dict]:
"""
Return a list of dataFiles for given persistent_id
Expand Down

0 comments on commit 96057f9

Please sign in to comment.