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]]