def has_documented_type_or_fields(self, include_inherited_fields=False):
if self.doc:<EOL><INDENT>return True<EOL><DEDENT>else:<EOL><INDENT>return self.has_documented_fields(include_inherited_fields)<EOL><DEDENT>
Returns whether this type, or any of its fields, are documented.

        Use this when deciding whether to create a block of documentation for
        this type.