From 840631657f04f83ade21dfc20f5e23bf6765cc82 Mon Sep 17 00:00:00 2001 From: Chad Dombrova Date: Thu, 16 May 2019 02:28:49 -0700 Subject: [PATCH] Add undocumented member glob.has_magic (#2972) --- stdlib/2/glob.pyi | 1 + stdlib/3/glob.pyi | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/stdlib/2/glob.pyi b/stdlib/2/glob.pyi index 667a51f2f..5caa166f8 100644 --- a/stdlib/2/glob.pyi +++ b/stdlib/2/glob.pyi @@ -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 diff --git a/stdlib/3/glob.pyi b/stdlib/3/glob.pyi index 701c4cacc..22ee20569 100644 --- a/stdlib/3/glob.pyi +++ b/stdlib/3/glob.pyi @@ -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