def desc_for(self, obj: Element, doing_descs: bool) -> str:
if obj.description and doing_descs:<EOL><INDENT>if isinstance(obj, SlotDefinition) and obj.is_a:<EOL><INDENT>parent = self.schema.slots[obj.is_a]<EOL><DEDENT>elif isinstance(obj, ClassDefinition) and obj.is_a:<EOL><INDENT>parent = self.schema.classes[obj.is_a]<EOL><DEDENT>else:<EOL><INDENT>parent = None<EOL><DEDENT>return '<STR_LIT>' if parent and obj.description == parent.description else obj.description<EOL><DEDENT>return '<STR_LIT>'<EOL>
Return a description for object if it is unique (different than its parent)

        @param obj: object to be described
        @param doing_descs: If false, always return an empty string
        @return: text or empty string