Fixes
- Fix type of
approved_mx_hostnamesparameter incheck_domains(closes #238) - Resolve Pyright/Pylance type errors and warnings across the project:
- Use
Literal[True]/Literal[False]forvalidinDMARCResults/
DMARCErrorResultsto enable discriminated union narrowing - Make
nameserversparameterOptionalincheck_mx,get_mx_hosts, and
get_tlsa_recordsto match call sites and the underlyingquery_dns - Type
get_nameserversreturn asNameserverResultOk; type the error path
incheck_nsasNameserverResultError - Type
parsed_dmarc_recordinparse_bimi_record/check_bimias
Optional[Union[DMARCResults, DMARCErrorResults]] - Type
results_to_json,results_to_csv, andresults_to_csv_rowsinputs
asDomainCheckResult | list[DomainCheckResult] - Remove stray tuple wrapper around an
add_argumentcall in the CLI
- Use