mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
Add undocumented member glob.has_magic (#2972)
This commit is contained in:
committed by
Sebastian Rittau
parent
a80066952e
commit
840631657f
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user