From e8438b35ebb8558f78b498097ad721e99d7fc514 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bertrand=20N=C3=A9ron?= <freeh4cker@gmail.com> Date: Fri, 6 Sep 2019 17:13:23 +0200 Subject: [PATCH] :pencil2: fix rst typos --- Graph/graph/helpers.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Graph/graph/helpers.py b/Graph/graph/helpers.py index ef63564..bc002fa 100644 --- a/Graph/graph/helpers.py +++ b/Graph/graph/helpers.py @@ -23,6 +23,11 @@ class AbstractQueue(metaclass=ABCMeta): def __contains__(self, item: Any) -> bool: return item in self._queue + + def __str__(self): + return f"{self.__class__.__name__}({str(self._queue)[6:-1]})" + + @abstractmethod def add(self, item: Any) -> None: return None @@ -36,7 +41,7 @@ class FIFO(AbstractQueue): """ This structure allow to store any object, 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: @@ -65,7 +70,7 @@ class LIFO(AbstractQueue): """ This structure allow to store any object, 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: -- GitLab