Add Extension.__len__.
This commit is contained in:
parent
5a3e521e9a
commit
e24e89a04b
1 changed files with 3 additions and 0 deletions
|
@ -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)})'
|
||||
|
||||
|
|
Loading…
Reference in a new issue