diff --git a/resources/typings/sublime_text/sublime.pyi b/resources/typings/sublime_text/sublime.pyi index 57b9788..7b5c36e 100644 --- a/resources/typings/sublime_text/sublime.pyi +++ b/resources/typings/sublime_text/sublime.pyi @@ -17,6 +17,7 @@ from typing import ( Sequence, Tuple, TypeVar, + overload, ) from _sublime_types import ( @@ -266,8 +267,32 @@ def yes_no_cancel_dialog(msg: str, yes_title: str = "", no_title: str = "", titl ... +@overload def open_dialog( - callback: Callable[[None | str | Sequence[str]], None], + callback: Callable[[None | Sequence[str]], None], + file_types: Sequence[Tuple[str, Sequence[str]]], + directory: None | str, + multi_select: Literal[True], + allow_folders: bool = False, +) -> None: + ... + + +@overload +def open_dialog( + callback: Callable[[None | Sequence[str]], None], + file_types: Sequence[Tuple[str, Sequence[str]]] = [], + directory: None | str = None, + allow_folders: bool = False, + *, + multi_select: Literal[True], +) -> None: + ... + + +@overload +def open_dialog( + callback: Callable[[None | str], None], file_types: Sequence[Tuple[str, Sequence[str]]] = [], directory: None | str = None, multi_select: bool = False,