From d3075899950b8b7ba49af74bf5830f2d6e8b9c5b Mon Sep 17 00:00:00 2001 From: jan Date: Mon, 9 Mar 2026 03:29:19 -0700 Subject: [PATCH] [ports2data] add note about using id rather than name --- masque/utils/ports2data.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/masque/utils/ports2data.py b/masque/utils/ports2data.py index 889425e..c7f42e1 100644 --- a/masque/utils/ports2data.py +++ b/masque/utils/ports2data.py @@ -86,6 +86,8 @@ def data_to_ports( if visited is None: visited = set() + # Note: visited uses id(pattern) to detect cycles and avoid redundant processing. + # This may not catch identical patterns if they are loaded as separate object instances. if id(pattern) in visited: return pattern visited.add(id(pattern))