Fix stubs for glob to include Python 3.4+ changes (#461)

This commit is contained in:
Michael Lee
2016-08-10 12:06:00 -07:00
committed by Guido van Rossum
parent 4e55f0561f
commit 8fd2aca9a4

View File

@@ -1,8 +1,15 @@
# Stubs for glob
# Based on http://docs.python.org/3.2/library/glob.html
# Based on http://docs.python.org/3/library/glob.html
from typing import List, Iterator, AnyStr
import sys
def glob(pathname: AnyStr) -> List[AnyStr]: ...
def iglob(pathname: AnyStr) -> Iterator[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]: ...
if sys.version_info >= (3, 4):
def escape(pathname: AnyStr) -> AnyStr: ...