mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Add flush keyword arg to print() (even though 3.2 does not support it).
This commit is contained in:
@@ -670,7 +670,8 @@ def oct(i: int) -> str: ... # TODO __index__
|
||||
def open(file: Union[str, bytes, int], mode: str = 'r', buffering: int = -1, encoding: str = None,
|
||||
errors: str = None, newline: str = None, closefd: bool = True) -> IO[Any]: ...
|
||||
def ord(c: Union[str, bytes, bytearray]) -> int: ...
|
||||
def print(*values: Any, sep: str = ' ', end: str = '\n', file: IO[str] = None) -> None: ...
|
||||
# TODO: in Python 3.2, print() does not support flush
|
||||
def print(*values: Any, sep: str = ' ', end: str = '\n', file: IO[str] = None, flush: bool = False) -> None: ...
|
||||
@overload
|
||||
def pow(x: int, y: int) -> Any: ... # The return type can be int or float, depending on y
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user