mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-02-17 07:03:58 +00:00
Fix get_base_domain() typing
This commit is contained in:
@@ -85,7 +85,7 @@ def decode_base64(data) -> bytes:
|
|||||||
return base64.b64decode(data)
|
return base64.b64decode(data)
|
||||||
|
|
||||||
|
|
||||||
def get_base_domain(domain: str) -> str:
|
def get_base_domain(domain: str) -> Optional[str]:
|
||||||
"""
|
"""
|
||||||
Gets the base domain name for the given domain
|
Gets the base domain name for the given domain
|
||||||
|
|
||||||
@@ -114,8 +114,8 @@ def query_dns(
|
|||||||
record_type: str,
|
record_type: str,
|
||||||
*,
|
*,
|
||||||
cache: Optional[ExpiringDict] = None,
|
cache: Optional[ExpiringDict] = None,
|
||||||
nameservers: list[str] = None,
|
nameservers: Optional[list[str]] = None,
|
||||||
timeout: int = 2.0,
|
timeout: float = 2.0,
|
||||||
) -> list[str]:
|
) -> list[str]:
|
||||||
"""
|
"""
|
||||||
Queries DNS
|
Queries DNS
|
||||||
@@ -181,8 +181,8 @@ def get_reverse_dns(
|
|||||||
ip_address,
|
ip_address,
|
||||||
*,
|
*,
|
||||||
cache: Optional[ExpiringDict] = None,
|
cache: Optional[ExpiringDict] = None,
|
||||||
nameservers: list[str] = None,
|
nameservers: Optional[list[str]] = None,
|
||||||
timeout: int = 2.0,
|
timeout: float = 2.0,
|
||||||
) -> str:
|
) -> str:
|
||||||
"""
|
"""
|
||||||
Resolves an IP address to a hostname using a reverse DNS query
|
Resolves an IP address to a hostname using a reverse DNS query
|
||||||
|
|||||||
Reference in New Issue
Block a user