From e24e89a04b58f9437e6e135259336112345495fa Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 21 Jan 2024 09:35:34 -0800 Subject: [PATCH] Add Extension.__len__. --- voussoirkit/pathclass.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/voussoirkit/pathclass.py b/voussoirkit/pathclass.py index ad7064d..3b28549 100644 --- a/voussoirkit/pathclass.py +++ b/voussoirkit/pathclass.py @@ -94,6 +94,9 @@ class Extension: def __hash__(self): return hash(self.ext) + def __len__(self): + return len(self.ext) + def __repr__(self): return f'Extension({repr(self.ext)})'