From 6d5248b05cd1aa5461afdfb4c64e138cd604d8e5 Mon Sep 17 00:00:00 2001 From: lou lecrivain Date: Mon, 23 Feb 2026 16:35:12 +0100 Subject: [PATCH] make typing of generic termination N-scalable fixes #94 --- cosmo/l2vpnhelpertypes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cosmo/l2vpnhelpertypes.py b/cosmo/l2vpnhelpertypes.py index 66b428e..5bdecb7 100644 --- a/cosmo/l2vpnhelpertypes.py +++ b/cosmo/l2vpnhelpertypes.py @@ -82,8 +82,8 @@ def _(self, o: InterfaceType | VLANType): # generic supported termination types. it's this shape so that it can be directly used by isinstance() -# (same shape as _ClassInfo) -T = tuple[type[AbstractNetboxType], type[AbstractNetboxType]] | type[AbstractNetboxType] +# (same shape as _ClassInfo). can be class/subclasses or N-length homogeneous tuple of class/subclasses +T = tuple[type[AbstractNetboxType], ...] | type[AbstractNetboxType] # FIXME simplify this!