From 6d1ae05563e32fb0d2968bd0fc9ffc85a894a3fb Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 5 Mar 2022 03:12:08 +0100 Subject: [PATCH] :notebook_with_decorative_cover: Slightly improve documentation --- royalnet/engineer/bullet/exc.py | 2 +- royalnet/engineer/discard.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/royalnet/engineer/bullet/exc.py b/royalnet/engineer/bullet/exc.py index 46b01f76..381b378a 100644 --- a/royalnet/engineer/bullet/exc.py +++ b/royalnet/engineer/bullet/exc.py @@ -1,5 +1,5 @@ """ -This modules contains the exceptions which can happen in bullets. +This module contains the exceptions which can be raised by bullets. """ from .. import exc diff --git a/royalnet/engineer/discard.py b/royalnet/engineer/discard.py index a66ef5af..581a9cbf 100644 --- a/royalnet/engineer/discard.py +++ b/royalnet/engineer/discard.py @@ -11,7 +11,14 @@ class Discard(BaseException): def __init__(self, obj, message): self.obj = obj + """ + The discarded object. + """ + self.message = message + """ + The reason for the discard. + """ def __repr__(self): return f"<{self.__class__.__qualname__}>"