mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 03:41:28 +08:00
Use Text under Python 2 in shutil.pyi. (#2471)
This commit is contained in:
committed by
Jelle Zijlstra
parent
9f98737119
commit
f73d060042
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user