Skip to content

Commit

Permalink
Add type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandenburgh committed Oct 18, 2023
1 parent 0dd3a33 commit 6262166
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dandiapi/api/doi.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def doi_configured() -> bool:
def _generate_doi_data(version: Version):
from dandischema.datacite import to_datacite

publish = settings.DANDI_DOI_PUBLISH
prefix = settings.DANDI_DOI_API_PREFIX
publish: bool = settings.DANDI_DOI_PUBLISH
prefix: str = settings.DANDI_DOI_API_PREFIX
dandiset_id = version.dandiset.identifier
version_id = version.version
doi = f'{prefix}/dandi.{dandiset_id}/{version_id}'
Expand Down

0 comments on commit 6262166

Please sign in to comment.