Add Extension.__len__.

This commit is contained in:
voussoir 2024-01-21 09:35:34 -08:00
parent 5a3e521e9a
commit e24e89a04b

View file

@ -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)})'