Skip to content

Commit

Permalink
type hint for instrument_used in ncbi_xml.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sujaypatil96 committed Feb 20, 2025
1 parent d48ebea commit 9e2c5b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nmdc_runtime/site/export/ncbi_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import xml.etree.ElementTree as ET
import xml.dom.minidom

from typing import Any
from typing import Any, List, Union
from urllib.parse import urlparse
from nmdc_runtime.site.export.ncbi_xml_utils import (
get_instruments,
Expand Down Expand Up @@ -366,7 +366,9 @@ def set_fastq(
)
# Currently, we are making the assumption that only one instrument
# is used to sequence a Biosample
instrument_used = ntseq.get("instrument_used", "")
instrument_used: Union[str, List[str]] = ntseq.get(
"instrument_used", []
)
if not instrument_used:
instrument_id = None
else:
Expand Down

0 comments on commit 9e2c5b7

Please sign in to comment.