@@ -83,7 +83,6 @@ def _dns_entry_matches(self, other: DNSEntry) -> bool:
8383 return self .key == other .key and self .type == other .type and self .class_ == other .class_
8484
8585 def __eq__ (self , other : Any ) -> bool :
86- """Equality test on key (lowercase name), type, and class"""
8786 return isinstance (other , DNSEntry ) and self ._dns_entry_matches (other )
8887
8988 @staticmethod
@@ -125,7 +124,6 @@ def __hash__(self) -> int:
125124 return self ._hash
126125
127126 def __eq__ (self , other : Any ) -> bool :
128- """Tests equality on dns question."""
129127 return isinstance (other , DNSQuestion ) and self ._dns_entry_matches (other )
130128
131129 @property
@@ -379,11 +377,9 @@ def write(self, out: DNSOutgoing) -> None:
379377 out .write_name (self .alias )
380378
381379 def __eq__ (self , other : Any ) -> bool :
382- """Tests equality on alias."""
383380 return isinstance (other , DNSPointer ) and self ._eq (other )
384381
385382 def _eq (self , other : DNSPointer ) -> bool :
386- """Tests equality on alias."""
387383 return self .alias_key == other .alias_key and self ._dns_entry_matches (other )
388384
389385 def __hash__ (self ) -> int :
@@ -425,11 +421,9 @@ def __hash__(self) -> int:
425421 return self ._hash
426422
427423 def __eq__ (self , other : Any ) -> bool :
428- """Tests equality on text."""
429424 return isinstance (other , DNSText ) and self ._eq (other )
430425
431426 def _eq (self , other : DNSText ) -> bool :
432- """Tests equality on text."""
433427 return self .text == other .text and self ._dns_entry_matches (other )
434428
435429 def __repr__ (self ) -> str :
@@ -508,8 +502,6 @@ def __repr__(self) -> str:
508502
509503
510504class DNSNsec (DNSRecord ):
511- """A DNS NSEC record"""
512-
513505 __slots__ = ("_hash" , "next_name" , "rdtypes" )
514506
515507 def __init__ (
@@ -560,11 +552,9 @@ def write(self, out: DNSOutgoing) -> None:
560552 out .write_string (out_bytes )
561553
562554 def __eq__ (self , other : Any ) -> bool :
563- """Tests equality on next_name and rdtypes."""
564555 return isinstance (other , DNSNsec ) and self ._eq (other )
565556
566557 def _eq (self , other : DNSNsec ) -> bool :
567- """Tests equality on next_name and rdtypes."""
568558 return (
569559 self .next_name == other .next_name
570560 and self .rdtypes == other .rdtypes
0 commit comments