Skip to content

Commit a846c3a

Browse files
committed
Disable pylint no-self-use check on abstract methods
1 parent 6002c9c commit a846c3a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

zeroconf/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ def __init__(self, name: str, type_: int, class_: int, ttl: Union[float, int]) -
505505
self._expiration_time = self.get_expiration_time(_EXPIRE_FULL_TIME_PERCENT)
506506
self._stale_time = self.get_expiration_time(_EXPIRE_STALE_TIME_PERCENT)
507507

508-
def __eq__(self, other: Any) -> bool:
508+
def __eq__(self, other: Any) -> bool: # pylint: disable=no-self-use
509509
"""Abstract method"""
510510
raise AbstractMethodException
511511

@@ -552,7 +552,7 @@ def reset_ttl(self, other: 'DNSRecord') -> None:
552552
self._expiration_time = self.get_expiration_time(_EXPIRE_FULL_TIME_PERCENT)
553553
self._stale_time = self.get_expiration_time(_EXPIRE_STALE_TIME_PERCENT)
554554

555-
def write(self, out: 'DNSOutgoing') -> None:
555+
def write(self, out: 'DNSOutgoing') -> None: # pylint: disable=no-self-use
556556
"""Abstract method"""
557557
raise AbstractMethodException
558558

0 commit comments

Comments
 (0)