Skip to content

Commit 18ba457

Browse files
committed
Fix typing
1 parent 8282e1f commit 18ba457

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugwise/helper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ def _find(xml_in: etree, locator: str) -> etree:
8787
def _findall(xml_in: etree, locator: str) -> list[etree]:
8888
"""Helper-function for use of etree.findall()."""
8989
if xml_in is not None:
90-
return xml_in.findall(locator)
90+
xml_list: list[etree] = xml_in.findall(locator)
91+
return xml_list
9192

9293
LOGGER.warning(
9394
"XML data unexpectedly not present, processing stopped. Please retry."

0 commit comments

Comments
 (0)