def content_type ( self ) -> ContentType : return self . _ctype if self . _ctype else self . parent . content_type ( )
python get type of self
Return receiver s content type .
def content_type(self) -> ContentType:
        """Return receiver's content type."""
        return self._ctype if self._ctype else self.parent.content_type()