mirror of
https://github.com/wassname/segpy.git
synced 2026-06-27 17:17:13 +08:00
Fixes SortedSet.__new__ failure to return object
This commit is contained in:
@@ -11,6 +11,7 @@ class SortedFrozenSet(Sequence, Set):
|
||||
return items
|
||||
obj = object.__new__(cls)
|
||||
obj._items = sorted(set(items)) if items is not None else []
|
||||
return obj
|
||||
|
||||
def __contains__(self, item):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user