From 35dbc1a4ff861bd5f0a58566dd1824997b1c4867 Mon Sep 17 00:00:00 2001 From: jan Date: Wed, 30 Mar 2022 23:57:50 -0700 Subject: [PATCH] layer can be any Hashable type --- snarl/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snarl/types.py b/snarl/types.py index 54482c4..ec2b4c6 100644 --- a/snarl/types.py +++ b/snarl/types.py @@ -1,5 +1,5 @@ -from typing import Union, Tuple, List, Sequence, Optional +from typing import Union, Tuple, List, Sequence, Optional, Hashable -layer_t = Tuple[int, int] +layer_t = Hashable contour_t = List[Tuple[int, int]] connectivity_t = Sequence[Tuple[layer_t, Optional[layer_t], layer_t]]