class documentation

class FakeQueue(Generic[T]):

Constructor: FakeQueue()

View In Hierarchy

A fake Queue implementing put and get.

Method __init__ Create a FakeQueue.
Method get Get an item.
Method put Put an item into the queue for later retrieval by FakeQueue.get.
Instance Variable items A lit of items placed by put but not yet retrieved by get.
def __init__(self):

Create a FakeQueue.

def get(self) -> T:

Get an item.

Returns
Tan item previously put by put.
def put(self, item: T):

Put an item into the queue for later retrieval by FakeQueue.get.

Parameters
item:Tany object
items: list =

A lit of items placed by put but not yet retrieved by get.