From 91d8c5248253c60bfe1ed47c2f3da5d38ab10b60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20S=C5=82awecki?= Date: Sun, 9 Jun 2024 10:39:33 +0200 Subject: [PATCH] Fix docstrings of `SlothyObject` (#48) --- slothy/object.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slothy/object.py b/slothy/object.py index 444cf08..787dd78 100644 --- a/slothy/object.py +++ b/slothy/object.py @@ -27,12 +27,12 @@ class SlothyObject: __package__: str def __setattr__(self, attr: str, value: Any) -> None: - """Intercept attribute assignment and raise an error if it's attempted.""" + """Audit and perform attribute assignment.""" on_slothy_setattr(self, attr, value) super().__setattr__(attr, value) def __delattr__(self, attr: str) -> None: - """Intercept attribute assignment and raise an error if it's attempted.""" + """Audit and perform attribute deletion.""" on_slothy_delattr(self, attr) super().__delattr__(attr)