Skip to content

Commit 6ce5378

Browse files
committed
Python 3.14 (Runtime): Adjust code base about Python 3.14 syntax
AttributeError: 'OrderedSet' object has no attribute 'copy'
1 parent 84e408e commit 6ce5378

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

streamz/orderedweakset.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ def add(self, value):
2626
def discard(self, value):
2727
self._od.pop(value, None)
2828

29+
def copy(self):
30+
return OrderedSet(self._od.copy())
31+
2932

3033
class OrderedWeakrefSet(weakref.WeakSet):
3134
def __init__(self, values=()):

0 commit comments

Comments
 (0)