Skip to content

Commit

Permalink
Fix pyright ignores.
Browse files Browse the repository at this point in the history
  • Loading branch information
bwelling committed Nov 27, 2024
1 parent daed056 commit b1415ba
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions dns/rdtypes/ANY/RRSIG.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ def to_text(self, origin=None, relativize=True, **kw):
f"{posixtime_to_sigtime(self.inception)} "
f"{self.key_tag} "
f"{self.signer.choose_relativity(origin, relativize)} "
f"{dns.rdata._base64ify(self.signature, **kw)}"
) # pyright: ignore
f"{dns.rdata._base64ify(self.signature, **kw)}" # pyright: ignore
)

@classmethod
def from_text(
Expand Down
4 changes: 2 additions & 2 deletions dns/rdtypes/ANY/SSHFP.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def to_text(self, origin=None, relativize=True, **kw):
kw = kw.copy()
chunksize = kw.pop("chunksize", 128)
fingerprint = dns.rdata._hexify(
self.fingerprint, chunksize=chunksize, **kw
) # pyright: ignore
self.fingerprint, chunksize=chunksize, **kw # pyright: ignore
)
return f"{self.algorithm} {self.fp_type} {fingerprint}"

@classmethod
Expand Down
4 changes: 2 additions & 2 deletions dns/rdtypes/ANY/ZONEMD.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def to_text(self, origin=None, relativize=True, **kw):
kw = kw.copy()
chunksize = kw.pop("chunksize", 128)
digest = dns.rdata._hexify(
self.digest, chunksize=chunksize, **kw
) # pyright: ignore
self.digest, chunksize=chunksize, **kw # pyright: ignore
)
return f"{self.serial} {self.scheme} {self.hash_algorithm} {digest}"

@classmethod
Expand Down
4 changes: 2 additions & 2 deletions dns/rdtypes/dsbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def to_text(self, origin=None, relativize=True, **kw):
kw = kw.copy()
chunksize = kw.pop("chunksize", 128)
digest = dns.rdata._hexify(
self.digest, chunksize=chunksize, **kw
) # pyright: ignore
self.digest, chunksize=chunksize, **kw # pyright: ignore
)
return f"{self.key_tag} {self.algorithm} {self.digest_type} {digest}"

@classmethod
Expand Down
4 changes: 2 additions & 2 deletions dns/rdtypes/tlsabase.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def to_text(self, origin=None, relativize=True, **kw):
kw = kw.copy()
chunksize = kw.pop("chunksize", 128)
cert = dns.rdata._hexify(
self.cert, chunksize=chunksize, **kw
) # pyright: ignore
self.cert, chunksize=chunksize, **kw # pyright: ignore
)
return f"{self.usage} {self.selector} {self.mtype} {cert}"

@classmethod
Expand Down

0 comments on commit b1415ba

Please sign in to comment.