We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6b48c5 commit bc29c03Copy full SHA for bc29c03
sigmf/convert/signalhound.py
@@ -11,6 +11,7 @@
11
import logging
12
import tempfile
13
import defusedxml.ElementTree as ET
14
+from xml.etree.ElementTree import Element
15
from datetime import datetime, timedelta, timezone
16
from pathlib import Path
17
from typing import List, Optional, Tuple
@@ -25,7 +26,7 @@
25
26
log = logging.getLogger()
27
28
-def _text_of(root: ET.Element, tag: str) -> Optional[str]:
29
+def _text_of(root: Element, tag: str) -> Optional[str]:
30
"""Extract and strip text from XML element."""
31
elem = root.find(tag)
32
return elem.text.strip() if (elem is not None and elem.text is not None) else None
0 commit comments