massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / glob.pyi
1 import sys
2 from _typeshed import StrOrBytesPath
3 from typing import AnyStr, Iterator
4
5 def glob0(dirname: AnyStr, pattern: AnyStr) -> list[AnyStr]: ...
6 def glob1(dirname: AnyStr, pattern: AnyStr) -> list[AnyStr]: ...
7
8 if sys.version_info >= (3, 10):
9     def glob(
10         pathname: AnyStr, *, root_dir: StrOrBytesPath | None = ..., dir_fd: int | None = ..., recursive: bool = ...
11     ) -> list[AnyStr]: ...
12     def iglob(
13         pathname: AnyStr, *, root_dir: StrOrBytesPath | None = ..., dir_fd: int | None = ..., recursive: bool = ...
14     ) -> Iterator[AnyStr]: ...
15
16 else:
17     def glob(pathname: AnyStr, *, recursive: bool = ...) -> list[AnyStr]: ...
18     def iglob(pathname: AnyStr, *, recursive: bool = ...) -> Iterator[AnyStr]: ...
19
20 def escape(pathname: AnyStr) -> AnyStr: ...
21 def has_magic(s: str | bytes) -> bool: ...  # undocumented