Fixed docstring format check bug

Fixed bug where type objects where incorrectly treated like functions for the docstring format check.