dnc

CLI tool to check domain names configuration and statistics
Log | Files | Refs | README | LICENSE

commit 6fd835244dd0e7b0ec39cb6b589e77bc8a74d304
parent 079cb073f65cbc13d65724026ecc5f25aaf52a40
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue, 19 Jan 2021 09:51:11 +0100

Add type hints for the query function.

Diffstat:
Mdnc.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dnc.py b/dnc.py @@ -6,7 +6,7 @@ # https://github.com/fcambus/dnc # # Created: 2014-02-11 -# Last Updated: 2021-01-17 +# Last Updated: 2021-01-19 # # dnc is released under the BSD 2-Clause license. # See LICENSE file for details. @@ -18,7 +18,7 @@ import dns.resolver from prettytable import PrettyTable -def query(domain, rrtype): +def query(domain: str, rrtype: str) -> str: try: answers = dns.resolver.resolve(domain, rrtype) except: