From dc5a1e34a34b6739650e47d127996c157345885d Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 22 Nov 2015 16:18:29 -0800 Subject: [PATCH] Fix 2.7 signature of fnmatch.translate(). --- stdlib/2.7/fnmatch.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/2.7/fnmatch.pyi b/stdlib/2.7/fnmatch.pyi index 34729ddeb..23b5978f2 100644 --- a/stdlib/2.7/fnmatch.pyi +++ b/stdlib/2.7/fnmatch.pyi @@ -1,6 +1,6 @@ -from typing import Iterable, Pattern +from typing import Iterable def fnmatch(filename: str, pattern: str) -> bool: ... def fnmatchcase(filename: str, pattern: str) -> bool: ... def filter(names: Iterable[str], pattern: str) -> Iterable[str]: ... -def translate(pattern: str) -> Pattern[str]: ... +def translate(pattern: str) -> str: ...