From 117e94c760d77ccf9ea19af03017196508c70953 Mon Sep 17 00:00:00 2001 From: Jan Kowalleck Date: Wed, 27 Sep 2023 14:45:00 +0200 Subject: [PATCH] reformat docs Signed-off-by: Jan Kowalleck --- docs/logging.rst | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/docs/logging.rst b/docs/logging.rst index 655fc98..9e8e457 100644 --- a/docs/logging.rst +++ b/docs/logging.rst @@ -18,25 +18,22 @@ This library utilizes an own instance of `Logger`_, which you may access and add my_log_handler.setFormatter(logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')) serializable.LOGGER.addHandler(my_log_handler) - print(serializable.LOGGER.name) - @serializable.serializable_class class Chapter: - def __init__(self, *, number: int, title: str) -> None: - self._number = number - self._title = title + def __init__(self, *, number: int, title: str) -> None: + self._number = number + self._title = title - @property - def number(self) -> int: - return self._number + @property + def number(self) -> int: + return self._number - @property - def title(self) -> str: - return self._title + @property + def title(self) -> str: + return self._title moby_dick_c1 = Chapter(number=1, title='Loomings') print(moby_dick_c1.as_json()) -