Skip to content

Commit

Permalink
Removing Union typing
Browse files Browse the repository at this point in the history
  • Loading branch information
manasaV3 committed Jan 17, 2024
1 parent 122ccba commit afddf5d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions napari-hub-commons/src/nhcommons/utils/adapter_helpers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import logging
from typing import Dict, List, Optional, Union
from typing import Dict, List, Optional

import yaml
from cffconvert import Citation
Expand Down Expand Up @@ -47,9 +47,7 @@ def get_first_valid_file(
return file
return None

def get_file(
self, file: str = "", file_format: str = ""
) -> Optional[Union[str, dict]]:
def get_file(self, file: str = "", file_format: str = "") -> Optional[str]:
"""
Get file from github.
:param file: filename to get if specified
Expand Down

0 comments on commit afddf5d

Please sign in to comment.