mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +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=[]):
|
def __init__(self, iterable=[]):
|
||||||
self._ordered_items = list(iterable)
|
self._ordered_items = list(iterable)
|
||||||
self._items = set(self._ordered_items)
|
self._items = set(self._ordered_items)
|
||||||
|
def __repr__(self):
|
||||||
|
return 'TruncatableSet({%r})' % self._items
|
||||||
def __contains__(self, item):
|
def __contains__(self, item):
|
||||||
return item in self._items
|
return item in self._items
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user