summaryrefslogtreecommitdiff
path: root/src/pip/_vendor/idna/compat.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/pip/_vendor/idna/compat.py')
-rw-r--r--src/pip/_vendor/idna/compat.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/pip/_vendor/idna/compat.py b/src/pip/_vendor/idna/compat.py
index dc896c766..786e6bda6 100644
--- a/src/pip/_vendor/idna/compat.py
+++ b/src/pip/_vendor/idna/compat.py
@@ -2,15 +2,12 @@ from .core import *
from .codec import *
from typing import Any, Union
-def ToASCII(label):
- # type: (str) -> bytes
+def ToASCII(label: str) -> bytes:
return encode(label)
-def ToUnicode(label):
- # type: (Union[bytes, bytearray]) -> str
+def ToUnicode(label: Union[bytes, bytearray]) -> str:
return decode(label)
-def nameprep(s):
- # type: (Any) -> None
+def nameprep(s: Any) -> None:
raise NotImplementedError('IDNA 2008 does not utilise nameprep protocol')