INNER CODE UNIT · Python

SkipProperty

volfpeter/htmy · htmy/core.py:167

class SkipProperty(Exception):
    """Exception raised by property formatters if the property should be skipped."""

    ...

    @classmethod
    def format_property(cls, _: Any) -> Never:
        """Property formatter that raises a `SkipProperty` error regardless of the received value."""
        raise cls("skip-property")


class Text(str):
    """Marker class for differentiating text content from other strings."""

    ...


class SafeStr(Text):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…