Skip to content

Commit f496493

Browse files
committed
Revision 2 (Amaras)
1 parent 7eb2445 commit f496493

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

contents/stacks_and_queues/code/python/queue.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22

33
__author__ = "Michael Ciccotosto-Camp"
44

5-
from collections.abc import Sized
65
from typing import TypeVar, Generic
76

87

98
T = TypeVar("T")
109

1110

12-
class Queue(Generic[T], Sized):
11+
class Queue(Generic[T]):
1312
def __init__(self) -> None:
1413
self.__list: list[T] = list()
1514

contents/stacks_and_queues/code/python/stack.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22

33
__author__ = "Michael Ciccotosto-Camp"
44

5-
from collections.abc import Sized
65
from typing import TypeVar, Generic
76

87

98
T = TypeVar("T")
109

1110

12-
class Stack(Generic[T], Sized):
11+
class Stack(Generic[T]):
1312
def __init__(self) -> None:
1413
self.__list: list[T] = []
1514

0 commit comments

Comments
 (0)