diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-01-31 12:43:41 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-01-31 12:43:41 +0300 |
commit | 42e491a4c2ee514cf9cf69654a8585052584ecab (patch) | |
tree | 266a8a99c83b6a3485ce50370a500580408fc36a /sphinx/util | |
parent | 9c56224231a5dcd2597bf28a85a26714cd9e33a8 (diff) |
refactor: AttributeError handling for getslots() is not needed
Diffstat (limited to 'sphinx/util')
-rw-r--r-- | sphinx/util/inspect.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sphinx/util/inspect.py b/sphinx/util/inspect.py index dbce85510..5477e64f7 100644 --- a/sphinx/util/inspect.py +++ b/sphinx/util/inspect.py @@ -179,7 +179,6 @@ def getslots(obj: Any) -> Optional[Dict]: """Get __slots__ attribute of the class as dict. Return None if gienv *obj* does not have __slots__. - Raises AttributeError if given *obj* raises an error on accessing __slots__. Raises TypeError if given *obj* is not a class. Raises ValueError if given *obj* have invalid __slots__. """ |