-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move types into source, drop Python 3.4 (#96)
* Move types into source, drop Python 3.4 * Make number_type Optional[str]
- Loading branch information
1 parent
a9e4f73
commit b0ef4bf
Showing
17 changed files
with
180 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
from .core import * | ||
from .codec import * | ||
from typing import Any, Union | ||
|
||
def ToASCII(label): | ||
# type: (str) -> bytes | ||
return encode(label) | ||
|
||
def ToUnicode(label): | ||
# type: (Union[bytes, bytearray]) -> str | ||
return decode(label) | ||
|
||
def nameprep(s): | ||
# type: (Any) -> None | ||
raise NotImplementedError('IDNA 2008 does not utilise nameprep protocol') | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.