code: def has_documented_type_or_fields(self, include_inherited_fields=False):
          
          if self.doc:
              return True
          else:
              return self.has_documented_fields(include_inherited_fields)
docs: 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.