Fixed bug where type objects where incorrectly treated like functions.
Merge pull request #808 from AlassaneNdiaye/fix_docstring_bug

Fixed docstring format check bug