Skip to content

refs

SnapshotRefType

Bases: str, Enum

Source code in pyiceberg/table/refs.py
class SnapshotRefType(str, Enum):
    BRANCH = "branch"
    TAG = "tag"

    def __repr__(self) -> str:
        """Return the string representation of the SnapshotRefType class."""
        return f"SnapshotRefType.{self.name}"

    def __str__(self) -> str:
        """Return the string representation of the SnapshotRefType class."""
        return self.value

__repr__()

Return the string representation of the SnapshotRefType class.

Source code in pyiceberg/table/refs.py
def __repr__(self) -> str:
    """Return the string representation of the SnapshotRefType class."""
    return f"SnapshotRefType.{self.name}"

__str__()

Return the string representation of the SnapshotRefType class.

Source code in pyiceberg/table/refs.py
def __str__(self) -> str:
    """Return the string representation of the SnapshotRefType class."""
    return self.value