class Option:
-
"""Base class for all EDNS option types."""
def __init__(self, otype: Union[OptionType, str]):
"""
raise NotImplementedError # pragma: no cover
+ def to_text(self) -> str:
+ raise NotImplementedError # pragma: no cover
+
@classmethod
def from_wire_parser(cls, otype: OptionType, parser: "dns.wire.Parser") -> "Option":
"""Build an EDNS option object from wire format.
class GenericOption(Option): # lgtm[py/missing-equals]
-
"""Generic Option Class
This class is used for EDNS option types for which we have no better