Skip to content

Commit 2382bbc

Browse files
add missing file
1 parent a924bdd commit 2382bbc

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

planemo/linters/util.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from typing import (
2+
Optional,
3+
TYPE_CHECKING,
4+
)
5+
6+
if TYPE_CHECKING:
7+
from galaxy.tool_util.parser.interface import ToolSource
8+
from galaxy.util import Element
9+
10+
11+
def xml_node_from_toolsource(tool_source: "ToolSource", tag: "str") -> Optional["Element"]:
12+
node = None
13+
xml_tree = getattr(tool_source, "xml_tree", None)
14+
if xml_tree:
15+
node = root.find(tag)
16+
return node

0 commit comments

Comments
 (0)