Skip to content

Commit c75d42e

Browse files
authored
Fix the type of ord on python 2 (#2735)
It looks like it got messed up in #2533
1 parent be99a2a commit c75d42e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/2/__builtin__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,7 @@ elif sys.version_info >= (3,):
13051305
else:
13061306
def open(file: Union[unicode, int], mode: unicode = ..., buffering: int = ...) -> BinaryIO: ...
13071307

1308-
def ord(c: Union[str, bytes]) -> int: ...
1308+
def ord(c: Union[Text, bytes]) -> int: ...
13091309
if sys.version_info >= (3,):
13101310
def print(*values: Any, sep: Text = ..., end: Text = ..., file: Optional[IO[str]] = ..., flush: bool = ...) -> None: ...
13111311
else:

stdlib/2and3/builtins.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,7 @@ elif sys.version_info >= (3,):
13051305
else:
13061306
def open(file: Union[unicode, int], mode: unicode = ..., buffering: int = ...) -> BinaryIO: ...
13071307

1308-
def ord(c: Union[str, bytes]) -> int: ...
1308+
def ord(c: Union[Text, bytes]) -> int: ...
13091309
if sys.version_info >= (3,):
13101310
def print(*values: Any, sep: Text = ..., end: Text = ..., file: Optional[IO[str]] = ..., flush: bool = ...) -> None: ...
13111311
else:

0 commit comments

Comments
 (0)