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
- Loading branch information
1 parent
a9e4f73
commit 3eb048e
Showing
17 changed files
with
162 additions
and
229 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ arch: | |
- amd64 | ||
- ppc64le | ||
python: | ||
- "3.4" | ||
- "3.5" | ||
- "3.6" | ||
- "3.7" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# type: ignore | ||
from .core import encode, decode, alabel, ulabel, IDNAError | ||
import codecs | ||
import re | ||
|
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,13 @@ | ||
from .core import * | ||
from .codec import * | ||
from typing import Any | ||
|
||
def ToASCII(label): | ||
def ToASCII(label: str) -> bytes: | ||
return encode(label) | ||
|
||
def ToUnicode(label): | ||
def ToUnicode(label: bytes) -> str: | ||
return decode(label) | ||
|
||
def nameprep(s): | ||
def nameprep(s: Any) -> None: | ||
raise NotImplementedError('IDNA 2008 does not utilise nameprep protocol') | ||
|
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.