Files
typeshed/stdlib/3/glob.pyi
Jelle Zijlstra 5d553c9584 apply black and isort (#4287)
* apply black and isort

* move some type ignores
2020-06-28 13:31:00 -07:00

18 lines
638 B
Python

# Stubs for glob
# Based on http://docs.python.org/3/library/glob.html
import sys
from typing import AnyStr, Iterator, List, Union
if sys.version_info >= (3, 6):
def glob0(dirname: AnyStr, pattern: AnyStr) -> List[AnyStr]: ...
else:
def glob0(dirname: AnyStr, basename: AnyStr) -> List[AnyStr]: ...
def glob1(dirname: AnyStr, pattern: AnyStr) -> List[AnyStr]: ...
def glob(pathname: AnyStr, *, recursive: bool = ...) -> List[AnyStr]: ...
def iglob(pathname: AnyStr, *, recursive: bool = ...) -> Iterator[AnyStr]: ...
def escape(pathname: AnyStr) -> AnyStr: ...
def has_magic(s: Union[str, bytes]) -> bool: ... # undocumented