Skip to content

Commit

Permalink
no compare ttl on DNSRecord (#218)
Browse files Browse the repository at this point in the history
* no compare ttl on DNSRecord
* mypy fixes
  • Loading branch information
mosquito authored Dec 29, 2024
1 parent 7c7b9d2 commit e990289
Show file tree
Hide file tree
Showing 4 changed files with 397 additions and 410 deletions.
2 changes: 1 addition & 1 deletion aiomisc/service/dns/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class DNSRecord:
type: RecordType
data: RD
cls: DNSClass = field(default=DNSClass.IN)
ttl: int = field(default=3600)
ttl: int = field(default=3600, compare=False)

def rr(self, query_type: int) -> dnslib.RR:
return dnslib.RR(
Expand Down
4 changes: 2 additions & 2 deletions aiomisc/service/raven.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class AioHttpTransportBase(
def __init__(
self, parsed_url: Optional[str] = None, *, verify_ssl: bool = True,
timeout: TimeoutType = defaults.TIMEOUT, keepalive: bool = True,
family: int = socket.AF_INET,
family: socket.AddressFamily = socket.AddressFamily.AF_INET,
):
self._keepalive = keepalive
self._family = family
Expand All @@ -92,7 +92,7 @@ def keepalive(self) -> bool:
return self._keepalive

@property
def family(self) -> int:
def family(self) -> socket.AddressFamily:
return self._family

def _client_session_factory(self) -> aiohttp.ClientSession:
Expand Down
Loading

0 comments on commit e990289

Please sign in to comment.