| 1 | import sys |
| 2 | from collections.abc import Iterator |
| 3 | from re import Match |
| 4 | |
| 5 | class Translator: |
| 6 | if sys.platform == "win32": |
| 7 | def __init__(self, seps: str = "\\/") -> None: ... |
| 8 | else: |
| 9 | def __init__(self, seps: str = "/") -> None: ... |
| 10 | |
| 11 | def translate(self, pattern: str) -> str: ... |
| 12 | def extend(self, pattern: str) -> str: ... |
| 13 | def match_dirs(self, pattern: str) -> str: ... |
| 14 | def translate_core(self, pattern: str) -> str: ... |
| 15 | def replace(self, match: Match[str]) -> str: ... |
| 16 | def restrict_rglob(self, pattern: str) -> None: ... |
| 17 | def star_not_empty(self, pattern: str) -> str: ... |
| 18 | |
| 19 | def separate(pattern: str) -> Iterator[Match[str]]: ... |