Commits

Georg Brandl committed 3180ee3

Fix #718: "pass" is not a good way to exit a function.

  • Participants
  • Parent commits 590d22d

Comments (0)

Files changed (1)

File sphinx/ext/autodoc.py

         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: