Skip to content

Commit

Permalink
reformat docs
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
  • Loading branch information
jkowalleck committed Sep 27, 2023
1 parent 190c775 commit 117e94c
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions docs/logging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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())

0 comments on commit 117e94c

Please sign in to comment.