mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Update utime stub (#1594)
times can be either a tuple of ints or floats
This commit is contained in:
committed by
Jelle Zijlstra
parent
55dbb967ad
commit
6bfd43d6b6
@@ -359,9 +359,10 @@ def symlink(source: _PathType, link_name: _PathType,
|
||||
target_is_directory: bool = ...) -> None:
|
||||
... # final argument in Windows only
|
||||
def unlink(path: _PathType) -> None: ...
|
||||
# TODO: add ns, dir_fd, follow_symlinks argument
|
||||
if sys.version_info >= (3, 0):
|
||||
def utime(path: _PathType, times: Optional[Tuple[float, float]] = ...) -> None: ...
|
||||
def utime(path: _PathType, times: Optional[Union[Tuple[int, int], Tuple[float, float]]] = ...,
|
||||
ns: Optional[Tuple[int, int]] = ..., dir_fd: Optional[int] = ...,
|
||||
follow_symlinks: bool = ...) -> None: ...
|
||||
else:
|
||||
def utime(path: _PathType, times: Optional[Tuple[float, float]]) -> None: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user