From 99b7354eadc4ff00820ae1c2030fa426c0d8debb Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Thu, 17 Oct 2024 17:05:45 -0400 Subject: Update type hints for BaseILInstruction.add_subgraph --- python/commonil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/commonil.py b/python/commonil.py index a98995ce..b665165d 100644 --- a/python/commonil.py +++ b/python/commonil.py @@ -44,7 +44,7 @@ class BaseILInstruction: parent.prepend_parent(graph, parent_node, nodes) @classmethod - def add_subgraph(cls, graph, nodes): + def add_subgraph(cls, graph: FlowGraph, nodes) -> FlowGraph: node = FlowGraphNode(graph) node.lines = [f"{cls.__name__}"] graph.append(node) -- cgit v1.3.1