mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Implement TruncatableSet.__repr__.
This commit is contained in:
parent
5f582e3f52
commit
00e25f86d8
@ -460,6 +460,8 @@ class TruncatableSet(collections.MutableSet):
|
||||
def __init__(self, iterable=[]):
|
||||
self._ordered_items = list(iterable)
|
||||
self._items = set(self._ordered_items)
|
||||
def __repr__(self):
|
||||
return 'TruncatableSet({%r})' % self._items
|
||||
def __contains__(self, item):
|
||||
return item in self._items
|
||||
def __iter__(self):
|
||||
|
Loading…
Reference in New Issue
Block a user