Skip to content

Commit e990289

Browse files
authored
no compare ttl on DNSRecord (#218)
* no compare ttl on DNSRecord * mypy fixes
1 parent 7c7b9d2 commit e990289

File tree

4 files changed

+397
-410
lines changed

4 files changed

+397
-410
lines changed

aiomisc/service/dns/records.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class DNSRecord:
8888
type: RecordType
8989
data: RD
9090
cls: DNSClass = field(default=DNSClass.IN)
91-
ttl: int = field(default=3600)
91+
ttl: int = field(default=3600, compare=False)
9292

9393
def rr(self, query_type: int) -> dnslib.RR:
9494
return dnslib.RR(

aiomisc/service/raven.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class AioHttpTransportBase(
7070
def __init__(
7171
self, parsed_url: Optional[str] = None, *, verify_ssl: bool = True,
7272
timeout: TimeoutType = defaults.TIMEOUT, keepalive: bool = True,
73-
family: int = socket.AF_INET,
73+
family: socket.AddressFamily = socket.AddressFamily.AF_INET,
7474
):
7575
self._keepalive = keepalive
7676
self._family = family
@@ -92,7 +92,7 @@ def keepalive(self) -> bool:
9292
return self._keepalive
9393

9494
@property
95-
def family(self) -> int:
95+
def family(self) -> socket.AddressFamily:
9696
return self._family
9797

9898
def _client_session_factory(self) -> aiohttp.ClientSession:

0 commit comments

Comments
 (0)