From f73d060042c9d5473c11379aa8ce198dc1dbfcb2 Mon Sep 17 00:00:00 2001 From: Siva Chandra Date: Tue, 25 Sep 2018 20:25:04 -0700 Subject: [PATCH] Use Text under Python 2 in shutil.pyi. (#2471) --- stdlib/2and3/shutil.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/2and3/shutil.pyi b/stdlib/2and3/shutil.pyi index 07f9f4bf4..de1f8fcc8 100644 --- a/stdlib/2and3/shutil.pyi +++ b/stdlib/2and3/shutil.pyi @@ -7,7 +7,7 @@ import sys from typing import ( List, Iterable, Callable, Any, Tuple, Sequence, NamedTuple, IO, - AnyStr, Optional, Union, Set, TypeVar, overload, Type, Protocol + AnyStr, Optional, Union, Set, TypeVar, overload, Type, Protocol, Text ) if sys.version_info >= (3, 6): @@ -23,7 +23,7 @@ elif sys.version_info >= (3,): _AnyPath = str _PathReturn = str else: - _Path = unicode + _Path = Text _AnyStr = TypeVar("_AnyStr", str, unicode) _AnyPath = TypeVar("_AnyPath", str, unicode) _PathReturn = Type[None]