Files
typeshed/stdlib/@python2/fnmatch.pyi
2022-03-16 16:01:33 +01:00

9 lines
329 B
Python

from typing import AnyStr, Iterable
_EitherStr = str | unicode
def fnmatch(filename: _EitherStr, pattern: _EitherStr) -> bool: ...
def fnmatchcase(filename: _EitherStr, pattern: _EitherStr) -> bool: ...
def filter(names: Iterable[AnyStr], pattern: _EitherStr) -> list[AnyStr]: ...
def translate(pattern: AnyStr) -> AnyStr: ...