diff --git a/format_stubs.sh b/format_stubs.sh index 3b06d4a..e219379 100755 --- a/format_stubs.sh +++ b/format_stubs.sh @@ -12,8 +12,8 @@ for f in *.pyi; do mv -- "$f" "${f%.pyi}.py" done -black . -isort . +black . --preview +isort . --profile black # rename *.py to *.pyi for f in *.py; do diff --git a/typings/sublime.pyi b/typings/sublime.pyi index 18cff27..57b9788 100644 --- a/typings/sublime.pyi +++ b/typings/sublime.pyi @@ -613,6 +613,24 @@ def get_macro() -> List[CommandArgsDict]: ... +def project_history() -> List[str]: + """ + Returns paths of recently opened `.sublime-project` / `.sublime-workspace` files. + + @version ST(>=4145) + """ + ... + + +def folder_history() -> List[str]: + """ + Returns paths of recently opened folders. + + @version ST(>=4145) + """ + ... + + class Window: """This class represents windows and provides an interface of methods to interact with them.""" @@ -2457,7 +2475,6 @@ class Buffer: class Settings: - settings_id: int def __init__(self, id: int) -> None: diff --git a/typings/sublime_plugin.pyi b/typings/sublime_plugin.pyi index dc72c6e..84ed1cc 100644 --- a/typings/sublime_plugin.pyi +++ b/typings/sublime_plugin.pyi @@ -700,9 +700,10 @@ class ListInputHandler(CommandInputHandler[T_InputType], Generic[T_InputType]): def list_items( self, - ) -> List[str | Tuple[str, T_InputType] | sublime.ListInputItem[T_InputType]] | Tuple[ - List[str | Tuple[str, T_InputType] | sublime.ListInputItem[T_InputType]], int - ]: + ) -> ( + List[str | Tuple[str, T_InputType] | sublime.ListInputItem[T_InputType]] + | Tuple[List[str | Tuple[str, T_InputType] | sublime.ListInputItem[T_InputType]], int] + ): """ The items to show in the list. If returning a list of `(str, value)` tuples, then the str will be shown to the user, while the value will be used as the command argument.