<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;"># Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.

from typing import Optional


class Enum:
    group: Optional[str] = None

    def __init__(self, label: str) -&gt; None:
        self.label = label

    def __repr__(self) -&gt; str:
        return f"&lt;{self.group}: {self.label}&gt;"

    def __str__(self) -&gt; str:
        return self.label


class StatusEnum(Enum):
    group = "Status"


OFFLINE = Enum("Offline")
ONLINE = Enum("Online")
AWAY = Enum("Away")


class OfflineError(Exception):
    """The requested action can't happen while offline."""
</pre></body></html>