mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 03:24:20 +00:00
📔 Slightly improve documentation
This commit is contained in:
parent
ac9a0de1b6
commit
6d1ae05563
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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__}>"
|
||||
|
|
Loading…
Reference in a new issue