From 5ca2c35103e441edd1e75f2bcef92b9a4a743468 Mon Sep 17 00:00:00 2001 From: Lev Blit Date: Fri, 14 Nov 2025 22:49:30 +0200 Subject: [PATCH] [pyxdg] fill in incompletes + fix typing of getFiles --- stubs/pyxdg/xdg/RecentFiles.pyi | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/stubs/pyxdg/xdg/RecentFiles.pyi b/stubs/pyxdg/xdg/RecentFiles.pyi index aab686b6fc56..742c9bdf6800 100644 --- a/stubs/pyxdg/xdg/RecentFiles.pyi +++ b/stubs/pyxdg/xdg/RecentFiles.pyi @@ -1,4 +1,4 @@ -from _typeshed import Incomplete, StrOrBytesPath, StrPath +from _typeshed import StrOrBytesPath, StrPath from collections.abc import Iterable class RecentFiles: @@ -8,11 +8,9 @@ class RecentFiles: def parse(self, filename: StrPath | None = None) -> None: ... def write(self, filename: StrOrBytesPath | None = None) -> None: ... def getFiles( - self, mimetypes: Iterable[str] | None = None, groups: Iterable[Incomplete] | None = None, limit: int = 0 - ) -> list[StrPath]: ... - def addFile( - self, item: StrPath, mimetype: str, groups: Iterable[Incomplete] | None = None, private: bool = False - ) -> None: ... + self, mimetypes: Iterable[str] | None = None, groups: Iterable[str] | None = None, limit: int = 0 + ) -> list[RecentFile]: ... + def addFile(self, item: StrPath, mimetype: str, groups: Iterable[str] | None = None, private: bool = False) -> None: ... def deleteFile(self, item: RecentFile | StrPath) -> None: ... def sort(self) -> None: ... @@ -21,7 +19,7 @@ class RecentFile: MimeType: str Timestamp: str Private: bool - Groups: list[Incomplete] + Groups: list[str] def __init__(self) -> None: ... def __cmp__(self, other: RecentFile) -> int: ... def __lt__(self, other: RecentFile) -> bool: ...