mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Add os.replace()
This commit is contained in:
committed by
Guido van Rossum
parent
e2ce50b525
commit
33fe6a0685
@@ -7,6 +7,7 @@ from typing import (
|
||||
Mapping, MutableMapping, Dict, List, Any, Tuple, Iterator, overload, Union, AnyStr,
|
||||
Optional, Generic, Set
|
||||
)
|
||||
import sys
|
||||
from builtins import OSError as error
|
||||
import os.path as path
|
||||
|
||||
@@ -254,6 +255,8 @@ def remove(path: AnyStr) -> None: ...
|
||||
def removedirs(path: AnyStr) -> None: ...
|
||||
def rename(src: AnyStr, dst: AnyStr) -> None: ...
|
||||
def renames(old: AnyStr, new: AnyStr) -> None: ...
|
||||
if sys.version_info >= (3, 3):
|
||||
def replace(src: AnyStr, dst: AnyStr) -> None: ...
|
||||
def rmdir(path: AnyStr) -> None: ...
|
||||
def stat(path: AnyStr) -> stat_result: ...
|
||||
def stat_float_times(newvalue: Union[bool, None] = ...) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user