diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-01-31 12:42:44 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-01-31 12:42:44 +0300 |
commit | 9c56224231a5dcd2597bf28a85a26714cd9e33a8 (patch) | |
tree | c9580183cd239aa0a27411ab3e46cf8e31d55ce9 /sphinx/util | |
parent | 50295f18c25020e15e9bc398a06894ac01c98e83 (diff) |
refactor: AttributeError handling for getall() 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 986049acf..dbce85510 100644 --- a/sphinx/util/inspect.py +++ b/sphinx/util/inspect.py @@ -145,7 +145,6 @@ def getall(obj: Any) -> Optional[Sequence[str]]: """Get __all__ attribute of the module as dict. Return None if given *obj* does not have __all__. - Raises AttributeError if given *obj* raises an error on accessing __all__. Raises ValueError if given *obj* have invalid __all__. """ __all__ = safe_getattr(obj, '__all__', None) |