mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #718: "pass" is not a good way to exit a function.
This commit is contained in:
parent
9d5215c1c9
commit
44f396488c
@ -912,7 +912,7 @@ class FunctionDocumenter(DocstringSignatureMixin, ModuleLevelDocumenter):
|
||||
if inspect.isbuiltin(self.object) or \
|
||||
inspect.ismethoddescriptor(self.object):
|
||||
# cannot introspect arguments of a C function or method
|
||||
pass
|
||||
return None
|
||||
try:
|
||||
argspec = getargspec(self.object)
|
||||
except TypeError:
|
||||
|
Loading…
Reference in New Issue
Block a user