diff options
Diffstat (limited to 'netlib/utils.py')
-rw-r--r-- | netlib/utils.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/netlib/utils.py b/netlib/utils.py index 0deb7c82..8a8b15ea 100644 --- a/netlib/utils.py +++ b/netlib/utils.py @@ -79,8 +79,7 @@ class Data(object): _label_valid = re.compile(b"(?!-)[A-Z\d-]{1,63}(?<!-)$", re.IGNORECASE) -def is_valid_host(host): - # type: (bytes) -> bool +def is_valid_host(host: bytes) -> bool: """ Checks if a hostname is valid. """ |