mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Fix the type of ord on python 2 (#2735)
It looks like it got messed up in #2533
This commit is contained in:
committed by
GitHub
parent
be99a2a5f0
commit
c75d42ef23
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user