Files
typeshed/stdlib/3/glob.pyi
Sebastian Rittau 95eff73ab2 Drop Python 3.3 support from several stubs (#2265)
* Drop Python 3.3 support from several stubs

* Revert wrong socketserver changes
2018-06-20 16:49:47 -07:00

22 lines
721 B
Python

# Stubs for glob
# Based on http://docs.python.org/3/library/glob.html
from typing import List, Iterator, AnyStr
import sys
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]: ...
if sys.version_info >= (3, 5):
def glob(pathname: AnyStr, *, recursive: bool = ...) -> List[AnyStr]: ...
def iglob(pathname: AnyStr, *, recursive: bool = ...) -> Iterator[AnyStr]: ...
else:
def glob(pathname: AnyStr) -> List[AnyStr]: ...
def iglob(pathname: AnyStr) -> Iterator[AnyStr]: ...
def escape(pathname: AnyStr) -> AnyStr: ...