mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
add zipfile._path.glob (#13154)
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
# >= 3.12
|
||||
# =======
|
||||
|
||||
zipfile._path.glob # Modules that exist at runtime, but are missing from typeshed
|
||||
zoneinfo.ZoneInfo.from_file # Pos-only parameters had different "names" in different Python versions
|
||||
|
||||
|
||||
|
||||
@@ -39,7 +39,6 @@ tkinter.Wm.wm_attributes
|
||||
# >= 3.12
|
||||
# =======
|
||||
|
||||
zipfile._path.glob # Modules that exist at runtime, but are missing from typeshed
|
||||
zoneinfo.ZoneInfo.from_file # Pos-only parameters had different "names" in different Python versions
|
||||
|
||||
|
||||
|
||||
22
stdlib/zipfile/_path/glob.pyi
Normal file
22
stdlib/zipfile/_path/glob.pyi
Normal file
@@ -0,0 +1,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]]: ...
|
||||
Reference in New Issue
Block a user