mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-13 10:08:27 +08:00
Consistently use '= ...' for optional parameters.
This commit is contained in:
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user