Skip to content

Commit

Permalink
fix typed example
Browse files Browse the repository at this point in the history
  • Loading branch information
rthalley committed Nov 2, 2024
1 parent 740ae72 commit 1f838bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/mx-typed.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
answers = dns.resolver.resolve("nominum.com", "MX")
for rdata in answers:
mx_rdata = cast(MX, rdata)
print("Host", rdata.exchange, "has preference", rdata.preference)
print("Host", mx_rdata.exchange, "has preference", mx_rdata.preference)

0 comments on commit 1f838bf

Please sign in to comment.