Add undocumented member glob.has_magic (#2972)

This commit is contained in:
Chad Dombrova
2019-05-16 02:28:49 -07:00
committed by Sebastian Rittau
parent a80066952e
commit 840631657f
2 changed files with 4 additions and 1 deletions

View File

@@ -4,3 +4,4 @@ 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]: ...
def has_magic(s: Union[str, unicode]) -> bool: ... # undocumented

View File

@@ -1,7 +1,7 @@
# Stubs for glob
# Based on http://docs.python.org/3/library/glob.html
from typing import List, Iterator, AnyStr
from typing import List, Iterator, AnyStr, Union
import sys
if sys.version_info >= (3, 6):
@@ -19,3 +19,5 @@ else:
def iglob(pathname: AnyStr) -> Iterator[AnyStr]: ...
def escape(pathname: AnyStr) -> AnyStr: ...
def has_magic(s: Union[str, bytes]) -> bool: ... # undocumented