1 from typing import AnyStr, Iterable, List, Union 2 3 _EitherStr = Union[str, unicode] 4 5 def fnmatch(filename: _EitherStr, pattern: _EitherStr) -> bool: ... 6 def fnmatchcase(filename: _EitherStr, pattern: _EitherStr) -> bool: ... 7 def filter(names: Iterable[AnyStr], pattern: _EitherStr) -> List[AnyStr]: ... 8 def translate(pattern: AnyStr) -> AnyStr: ... 9