Fix the type of ord on python 2 (#2735)

It looks like it got messed up in #2533
This commit is contained in:
Michael J. Sullivan
2019-01-10 19:24:51 -06:00
committed by GitHub
parent be99a2a5f0
commit c75d42ef23
2 changed files with 2 additions and 2 deletions

View File

@@ -1305,7 +1305,7 @@ elif sys.version_info >= (3,):
else:
def open(file: Union[unicode, int], mode: unicode = ..., buffering: int = ...) -> BinaryIO: ...
def ord(c: Union[str, bytes]) -> int: ...
def ord(c: Union[Text, bytes]) -> int: ...
if sys.version_info >= (3,):
def print(*values: Any, sep: Text = ..., end: Text = ..., file: Optional[IO[str]] = ..., flush: bool = ...) -> None: ...
else:

View File

@@ -1305,7 +1305,7 @@ elif sys.version_info >= (3,):
else:
def open(file: Union[unicode, int], mode: unicode = ..., buffering: int = ...) -> BinaryIO: ...
def ord(c: Union[str, bytes]) -> int: ...
def ord(c: Union[Text, bytes]) -> int: ...
if sys.version_info >= (3,):
def print(*values: Any, sep: Text = ..., end: Text = ..., file: Optional[IO[str]] = ..., flush: bool = ...) -> None: ...
else: