From 33fe6a0685b5647477801373914b137aecb8c4b8 Mon Sep 17 00:00:00 2001 From: James Tatum Date: Sat, 7 May 2016 13:22:16 -0700 Subject: [PATCH] Add os.replace() --- stdlib/3/os/__init__.pyi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stdlib/3/os/__init__.pyi b/stdlib/3/os/__init__.pyi index 4352a12f3..fdda65f5a 100644 --- a/stdlib/3/os/__init__.pyi +++ b/stdlib/3/os/__init__.pyi @@ -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: ...