2 from _typeshed import StrOrBytesPath
3 from typing import AnyStr, Iterator
5 def glob0(dirname: AnyStr, pattern: AnyStr) -> list[AnyStr]: ...
6 def glob1(dirname: AnyStr, pattern: AnyStr) -> list[AnyStr]: ...
8 if sys.version_info >= (3, 10):
10 pathname: AnyStr, *, root_dir: StrOrBytesPath | None = ..., dir_fd: int | None = ..., recursive: bool = ...
11 ) -> list[AnyStr]: ...
13 pathname: AnyStr, *, root_dir: StrOrBytesPath | None = ..., dir_fd: int | None = ..., recursive: bool = ...
14 ) -> Iterator[AnyStr]: ...
17 def glob(pathname: AnyStr, *, recursive: bool = ...) -> list[AnyStr]: ...
18 def iglob(pathname: AnyStr, *, recursive: bool = ...) -> Iterator[AnyStr]: ...
20 def escape(pathname: AnyStr) -> AnyStr: ...
21 def has_magic(s: str | bytes) -> bool: ... # undocumented