diff options
Diffstat (limited to 'sphinx/util/inspect.py')
-rw-r--r-- | sphinx/util/inspect.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sphinx/util/inspect.py b/sphinx/util/inspect.py index e8427fd84..6b404790c 100644 --- a/sphinx/util/inspect.py +++ b/sphinx/util/inspect.py @@ -580,6 +580,7 @@ else: # of Python 3.5 def _findclass(func): + # type: (Any) -> Any cls = sys.modules.get(func.__module__) if cls is None: return None @@ -593,6 +594,7 @@ else: return cls def _finddoc(obj): + # type: (Any) -> unicode if inspect.isclass(obj): for base in obj.__mro__: if base is not object: @@ -653,6 +655,7 @@ else: return None def getdoc(object): + # type: (Any) -> unicode """Get the documentation string for an object. All tabs are expanded to spaces. To clean up docstrings that are |