From ea0a0fd17e5c7e91746753f1763934e617e35eb8 Mon Sep 17 00:00:00 2001 From: Rebecca Chen Date: Fri, 12 Oct 2018 05:39:24 -0700 Subject: [PATCH] Fix _StrType in difflib in Python 2. (#2514) difflib functions accept unicode as well. --- stdlib/2and3/difflib.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/2and3/difflib.pyi b/stdlib/2and3/difflib.pyi index a6a4a893d..eea373a89 100644 --- a/stdlib/2and3/difflib.pyi +++ b/stdlib/2and3/difflib.pyi @@ -12,7 +12,7 @@ if sys.version_info >= (3,): _StrType = Text else: # Aliases can't point to type vars, so we need to redeclare AnyStr - _StrType = TypeVar('_StrType', str, bytes) + _StrType = TypeVar('_StrType', Text, bytes) _JunkCallback = Union[Callable[[Text], bool], Callable[[str], bool]]