Skip to content
Snippets Groups Projects
Commit e8438b35 authored by Bertrand Néron's avatar Bertrand Néron
Browse files

:pencil2: fix rst typos

parent 81501062
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,11 @@ class AbstractQueue(metaclass=ABCMeta): ...@@ -23,6 +23,11 @@ class AbstractQueue(metaclass=ABCMeta):
def __contains__(self, item: Any) -> bool: def __contains__(self, item: Any) -> bool:
return item in self._queue return item in self._queue
def __str__(self):
return f"{self.__class__.__name__}({str(self._queue)[6:-1]})"
@abstractmethod @abstractmethod
def add(self, item: Any) -> None: def add(self, item: Any) -> None:
return None return None
...@@ -36,7 +41,7 @@ class FIFO(AbstractQueue): ...@@ -36,7 +41,7 @@ class FIFO(AbstractQueue):
""" """
This structure allow to store any object, This structure allow to store any object,
The First element add to the structure will be the First element removed from it. The First element add to the structure will be the First element removed from it.
*F*irst *I*n *F*irst *O*ut **F**\ irst **I**\ n **F**\ irst **O**\ ut
""" """
def add(self, item: Any) -> Any: def add(self, item: Any) -> Any:
...@@ -65,7 +70,7 @@ class LIFO(AbstractQueue): ...@@ -65,7 +70,7 @@ class LIFO(AbstractQueue):
""" """
This structure allow to store any object, This structure allow to store any object,
The Last element add to the structure will be the First element removed from it. The Last element add to the structure will be the First element removed from it.
*L*ast *I*n *F*irst *O*ut **L**\ ast **I**\ n **F**\ irst **O**\ ut
""" """
def add(self, item: Any) -> None: def add(self, item: Any) -> None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment