mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
9 lines
348 B
Python
9 lines
348 B
Python
from typing import AnyStr, Iterable, List, Union
|
|
|
|
_EitherStr = Union[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: ...
|