Skip to content

Commit

Permalink
chore: update ST API stubs
Browse files Browse the repository at this point in the history
Signed-off-by: Jun-Fei Cherng <[email protected]>
  • Loading branch information
jfcherng committed Jun 12, 2024
1 parent 4c60248 commit 5ccf079
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion resources/typings/sublime_text/sublime.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ from typing import (
Sequence,
Tuple,
TypeVar,
overload,
)

from _sublime_types import (
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 5ccf079

Please sign in to comment.