Skip to content

Commit cb0df6f

Browse files
author
Joel Collins
committed
Added basic deque submodule
1 parent 450bf61 commit cb0df6f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/labthings/deque.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from collections import deque as _deque
2+
3+
4+
class Deque(_deque):
5+
def __init__(self, iterable=None, maxlen=100):
6+
_deque.__init__(self, iterable or [], maxlen)
7+
8+
9+
def resize_deque(iterable: _deque, newsize: int):
10+
return deque(iterable, newsize)

0 commit comments

Comments
 (0)