Fix type annotations for glob (#1386)

This commit is contained in:
amstree
2017-06-03 00:05:21 -04:00
committed by Jelle Zijlstra
parent 0b1f5db630
commit 1d4c73d708

View File

@@ -1,8 +1,6 @@
from typing import List, Iterator, Union
from typing import List, Iterator, Union, AnyStr
_string = Union[str, unicode]
def glob(pathname: _string) -> List[_string]: ...
def iglob(pathname: _string) -> Iterator[_string]: ...
def glob1(dirname: _string, pattern: _string) -> List[_string]: ...
def glob0(dirname: _string, basename: _string) -> List[_string]: ...
def glob(pathname: AnyStr) -> List[AnyStr]: ...
def iglob(pathname: AnyStr) -> Iterator[AnyStr]: ...
def glob1(dirname: Union[str, unicode], pattern: AnyStr) -> List[AnyStr]: ...
def glob0(dirname: Union[str, unicode], basename: AnyStr) -> List[AnyStr]: ...