]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
The EDNS Option base class should have a NotImplemented to_text().
authorBob Halley <halley@dnspython.org>
Sun, 4 Feb 2024 21:41:09 +0000 (13:41 -0800)
committerBob Halley <halley@dnspython.org>
Sun, 4 Feb 2024 21:41:09 +0000 (13:41 -0800)
dns/edns.py

index f05baac4573c7fd857a865e0fa61aad283de8a75..c80e04825e5919094680eb42f352aec06020fd8e 100644 (file)
@@ -58,7 +58,6 @@ class OptionType(dns.enum.IntEnum):
 
 
 class Option:
-
     """Base class for all EDNS option types."""
 
     def __init__(self, otype: Union[OptionType, str]):
@@ -76,6 +75,9 @@ class Option:
         """
         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.
@@ -141,7 +143,6 @@ class Option:
 
 
 class GenericOption(Option):  # lgtm[py/missing-equals]
-
     """Generic Option Class
 
     This class is used for EDNS option types for which we have no better