We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7eb2445 commit f496493Copy full SHA for f496493
contents/stacks_and_queues/code/python/queue.py
@@ -2,14 +2,13 @@
2
3
__author__ = "Michael Ciccotosto-Camp"
4
5
-from collections.abc import Sized
6
from typing import TypeVar, Generic
7
8
9
T = TypeVar("T")
10
11
12
-class Queue(Generic[T], Sized):
+class Queue(Generic[T]):
13
def __init__(self) -> None:
14
self.__list: list[T] = list()
15
contents/stacks_and_queues/code/python/stack.py
-class Stack(Generic[T], Sized):
+class Stack(Generic[T]):
self.__list: list[T] = []
0 commit comments