Skip to content

Commit bc29c03

Browse files
committed
fix for python3.13
1 parent f6b48c5 commit bc29c03

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sigmf/convert/signalhound.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import logging
1212
import tempfile
1313
import defusedxml.ElementTree as ET
14+
from xml.etree.ElementTree import Element
1415
from datetime import datetime, timedelta, timezone
1516
from pathlib import Path
1617
from typing import List, Optional, Tuple
@@ -25,7 +26,7 @@
2526
log = logging.getLogger()
2627

2728

28-
def _text_of(root: ET.Element, tag: str) -> Optional[str]:
29+
def _text_of(root: Element, tag: str) -> Optional[str]:
2930
"""Extract and strip text from XML element."""
3031
elem = root.find(tag)
3132
return elem.text.strip() if (elem is not None and elem.text is not None) else None

0 commit comments

Comments
 (0)