File: glob.pyi

package info (click to toggle)
typeshed 0.0~git20241223.ea91db2-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 28,756 kB
  • sloc: python: 7,741; makefile: 20; sh: 18
file content (22 lines) | stat: -rw-r--r-- 825 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import sys
from collections.abc import Iterator
from re import Match

if sys.version_info >= (3, 13):
    class Translator:
        def __init__(self, seps: str = ...) -> None: ...
        def translate(self, pattern: str) -> str: ...
        def extend(self, pattern: str) -> str: ...
        def match_dirs(self, pattern: str) -> str: ...
        def translate_core(self, pattern: str) -> str: ...
        def replace(self, match: Match[str]) -> str: ...
        def restrict_rglob(self, pattern: str) -> None: ...
        def star_not_empty(self, pattern: str) -> str: ...

else:
    def translate(pattern: str) -> str: ...
    def match_dirs(pattern: str) -> str: ...
    def translate_core(pattern: str) -> str: ...
    def replace(match: Match[str]) -> str: ...

def separate(pattern: str) -> Iterator[Match[str]]: ...