From c486ffee04a61a9681bc3e8ca67ac5a3b8ec9a8c Mon Sep 17 00:00:00 2001 From: Matt Marcus Date: Wed, 15 Apr 2020 21:27:13 -0600 Subject: [PATCH] chore: add todo item for using set to construct graph from set directly --- utils/generate_protocol_types.py | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/generate_protocol_types.py b/utils/generate_protocol_types.py index 95d87281..6e3b165f 100644 --- a/utils/generate_protocol_types.py +++ b/utils/generate_protocol_types.py @@ -296,6 +296,7 @@ def expand_recursive_references(self) -> None: Returns: None """ expansion = 'Dict[str, Union[Dict[str, Any], str, bool, int, float, List]]' + # todo: networkx will soon support sets: https://github.com/networkx/networkx/pull/3907 for recursive_refs in nx.simple_cycles(nx.DiGraph([*self.td_references])): any_recursive_ref = "|".join(recursive_refs) for recursing_itm in recursive_refs: