Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2021-01-31 12:43:41 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2021-01-31 12:43:41 +0300
commit42e491a4c2ee514cf9cf69654a8585052584ecab (patch)
tree266a8a99c83b6a3485ce50370a500580408fc36a /sphinx/util
parent9c56224231a5dcd2597bf28a85a26714cd9e33a8 (diff)
refactor: AttributeError handling for getslots() is not needed
Diffstat (limited to 'sphinx/util')
-rw-r--r--sphinx/util/inspect.py1
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__.
"""