From c358e517c25ad3d752790b554597fcb4b1cfec9f Mon Sep 17 00:00:00 2001 From: Eliot Robson Date: Thu, 1 Feb 2024 18:07:11 -0600 Subject: [PATCH] Update utils.py --- automata/base/utils.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/automata/base/utils.py b/automata/base/utils.py index 5880e45b..077e5e31 100644 --- a/automata/base/utils.py +++ b/automata/base/utils.py @@ -214,14 +214,11 @@ def pairwise(iterable: Iterable[T], final_none: bool = False) -> Iterable[Tuple[ return zip(a, b) -NodeT = TypeVar("NodeT") - - def get_reachable_nodes( G: nx.DiGraph, - sources: Iterable[NodeT], + sources: Iterable[Any], reversed: bool = False, -) -> Set[NodeT]: +) -> Set[Any]: """ Return a set with all descendants (or predecessors if reversed is True) of the nodes in sources.