mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-24 03:51:52 +08:00
Add undocumented member glob.has_magic (#2972)
This commit is contained in:
committed by
Sebastian Rittau
parent
a80066952e
commit
840631657f
@@ -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