Consistently use '= ...' for optional parameters.

This commit is contained in:
Matthias Kramm
2015-11-09 13:55:00 -08:00
parent 375bf063b1
commit 94c9ce8fd0
278 changed files with 2085 additions and 2085 deletions
+5 -5
View File
@@ -74,12 +74,12 @@ LOCK_WRITE = ... # type: int
_ANYFILE = Union[int, io.IOBase]
def fcntl(fd: _ANYFILE, op: int, arg: Union[int, str] = 0) -> Union[int, str]: ...
def fcntl(fd: _ANYFILE, op: int, arg: Union[int, str] = ...) -> Union[int, str]: ...
# TODO: arg: int or read-only buffer interface or read-write buffer interface
def ioctl(fd: _ANYFILE, op: int, arg: Union[int, str] = 0,
mutate_flag: bool = True) -> Union[int, str]: ...
def ioctl(fd: _ANYFILE, op: int, arg: Union[int, str] = ...,
mutate_flag: bool = ...) -> Union[int, str]: ...
def flock(fd: _ANYFILE, op: int) -> None: ...
def lockf(fd: _ANYFILE, op: int, length: int = 0, start: int = 0,
whence: int = 0) -> Union[int, str]: ...
def lockf(fd: _ANYFILE, op: int, length: int = ..., start: int = ...,
whence: int = ...) -> Union[int, str]: ...