Skip to content

Commit

Permalink
Fix the type of ord on python 2
Browse files Browse the repository at this point in the history
It looks like it got messed up in #2533
  • Loading branch information
msullivan committed Jan 11, 2019
1 parent be99a2a commit bf4b431
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stdlib/2/__builtin__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion stdlib/2and3/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bf4b431

Please sign in to comment.