Why not just call self.type()? You've already stored properties into self._prop.