def tag(self) -> Union["TagObject", None]:
        """
        :return:
            Tag object this tag ref points to, or ``None`` in case we are a lightweight
            tag
        """
        obj = self.object
        if obj.type == "tag":
            return obj
        return None

        :return:
            Tag object this tag ref points to, or ``None`` in case we are a lightweight
            tag
        
git/refs/tag.py