8000 Add os.replace() · python/typeshed@33fe6a0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 33fe6a0

Browse files
jtatumgvanrossum
authored andcommitted
Add os.replace()
1 parent e2ce50b commit 33fe6a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/3/os/__init__.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ from typing import (
77
Mapping, MutableMapping, Dict, List, Any, Tuple, Iterator, overload, Union, AnyStr,
88
Optional, Generic, Set
99
)
10+
import sys
1011
from builtins import OSError as error
1112
import os.path as path
1213

@@ -254,6 +255,8 @@ def remove(path: AnyStr) -> None: ...
254255
def removedirs(path: AnyStr) -> None: ...
255256
def rename(src: AnyStr, dst: AnyStr) -> None: ...
256257
def renames(old: AnyStr, new: AnyStr) -> None: ...
258+
if sys.version_info >= (3, 3):
259+
def replace(src: AnyStr, dst: AnyStr) -> None: ...
257260
def rmdir(path: AnyStr) -> None: ...
258261
def stat(path: AnyStr) -> stat_result: ...
259262
def stat_float_times(newvalue: Union[bool, None] = ...) -> bool: ...

0 commit comments

Comments
 (0)
0