mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
16 lines
513 B
Python
16 lines
513 B
Python
# Stubs for glob
|
|
# Based on http://docs.python.org/3/library/glob.html
|
|
|
|
from typing import List, Iterator, AnyStr
|
|
import sys
|
|
|
|
if sys.version_info >= (3, 5):
|
|
def glob(pathname: AnyStr, *, recursive: bool = ...) -> List[AnyStr]: ...
|
|
def iglob(pathname: AnyStr, *, recursive: bool = ...) -> Iterator[AnyStr]: ...
|
|
else:
|
|
def glob(pathname: AnyStr) -> List[AnyStr]: ...
|
|
def iglob(pathname: AnyStr) -> Iterator[AnyStr]: ...
|
|
|
|
if sys.version_info >= (3, 4):
|
|
def escape(pathname: AnyStr) -> AnyStr: ...
|