Fix 2.7 signature of fnmatch.translate().

This commit is contained in:
Guido van Rossum
2015-11-22 16:18:29 -08:00
parent ea35d5c8e6
commit dc5a1e34a3

View File

@@ -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: ...