Files
typeshed/stdlib/3/glob.pyi
Shantanu 6ff5b88ca7 typeshed: remove crufty comments (#4699)
Co-authored-by: hauntsaninja <>
2020-10-23 09:40:06 +02:00

15 lines
566 B
Python

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