Fixed docstring format check bug

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