def __repr__(self):
        """
        Returns a textual representation of this sentence.

        @return: A textual representation of this sentence.
        @rtype: C{str}
        """
        items = self._sentenceData.items()
        data = ["%s: %s" % (k, v) for k, v in sorted(items) if k != "type"]
        dataRepr = ", ".join(data)

        typeRepr = self._sentenceData.get("type") or "unknown type"
        className = self.__class__.__name__

        return "<%s (%s) {%s}>" % (className, typeRepr, dataRepr)

        Returns a textual representation of this sentence.

        @return: A textual representation of this sentence.
        @rtype: C{str}
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/positioning/_sentence.py