Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
480 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
[mypy] | ||
ignore_missing_imports = True | ||
# ignore_missing_imports = True | ||
check_untyped_defs = True | ||
strict_optional = True | ||
mypy_path = stubs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,345 @@ | ||
# Stubs for sublime (Python 3.5) | ||
# | ||
# NOTE: This dynamically typed stub was automatically generated by stubgen. | ||
|
||
from typing import Any, Optional | ||
|
||
class _LogWriter: | ||
def flush(self): ... | ||
def write(self, s): ... | ||
|
||
HOVER_TEXT = ... # type: int | ||
HOVER_GUTTER = ... # type: int | ||
HOVER_MARGIN = ... # type: int | ||
ENCODED_POSITION = ... # type: int | ||
TRANSIENT = ... # type: int | ||
FORCE_GROUP = ... # type: int | ||
IGNORECASE = ... # type: int | ||
LITERAL = ... # type: int | ||
MONOSPACE_FONT = ... # type: int | ||
KEEP_OPEN_ON_FOCUS_LOST = ... # type: int | ||
HTML = ... # type: int | ||
COOPERATE_WITH_AUTO_COMPLETE = ... # type: int | ||
HIDE_ON_MOUSE_MOVE = ... # type: int | ||
HIDE_ON_MOUSE_MOVE_AWAY = ... # type: int | ||
DRAW_EMPTY = ... # type: int | ||
HIDE_ON_MINIMAP = ... # type: int | ||
DRAW_EMPTY_AS_OVERWRITE = ... # type: int | ||
PERSISTENT = ... # type: int | ||
DRAW_OUTLINED = ... # type: int | ||
DRAW_NO_FILL = ... # type: int | ||
DRAW_NO_OUTLINE = ... # type: int | ||
DRAW_SOLID_UNDERLINE = ... # type: int | ||
DRAW_STIPPLED_UNDERLINE = ... # type: int | ||
DRAW_SQUIGGLY_UNDERLINE = ... # type: int | ||
HIDDEN = ... # type: int | ||
OP_EQUAL = ... # type: int | ||
OP_NOT_EQUAL = ... # type: int | ||
OP_REGEX_MATCH = ... # type: int | ||
OP_NOT_REGEX_MATCH = ... # type: int | ||
OP_REGEX_CONTAINS = ... # type: int | ||
OP_NOT_REGEX_CONTAINS = ... # type: int | ||
CLASS_WORD_START = ... # type: int | ||
CLASS_WORD_END = ... # type: int | ||
CLASS_PUNCTUATION_START = ... # type: int | ||
CLASS_PUNCTUATION_END = ... # type: int | ||
CLASS_SUB_WORD_START = ... # type: int | ||
CLASS_SUB_WORD_END = ... # type: int | ||
CLASS_LINE_START = ... # type: int | ||
CLASS_LINE_END = ... # type: int | ||
CLASS_EMPTY_LINE = ... # type: int | ||
INHIBIT_WORD_COMPLETIONS = ... # type: int | ||
INHIBIT_EXPLICIT_COMPLETIONS = ... # type: int | ||
DIALOG_CANCEL = ... # type: int | ||
DIALOG_YES = ... # type: int | ||
DIALOG_NO = ... # type: int | ||
UI_ELEMENT_SIDE_BAR = ... # type: int | ||
UI_ELEMENT_MINIMAP = ... # type: int | ||
UI_ELEMENT_TABS = ... # type: int | ||
UI_ELEMENT_STATUS_BAR = ... # type: int | ||
UI_ELEMENT_MENU = ... # type: int | ||
UI_ELEMENT_OPEN_FILES = ... # type: int | ||
LAYOUT_INLINE = ... # type: int | ||
LAYOUT_BELOW = ... # type: int | ||
LAYOUT_BLOCK = ... # type: int | ||
|
||
def version(): ... | ||
def platform(): ... | ||
def arch(): ... | ||
def channel(): ... | ||
def executable_path(): ... | ||
def executable_hash(): ... | ||
def packages_path(): ... | ||
def installed_packages_path(): ... | ||
def cache_path(): ... | ||
def status_message(msg): ... | ||
def error_message(msg): ... | ||
def message_dialog(msg): ... | ||
def ok_cancel_dialog(msg, ok_title: str = ...): ... | ||
def yes_no_cancel_dialog(msg, yes_title: str = ..., no_title: str = ...): ... | ||
def run_command(cmd, args: Optional[Any] = ...): ... | ||
def get_clipboard(size_limit: int = ...): ... | ||
def set_clipboard(text): ... | ||
def log_commands(flag): ... | ||
def log_input(flag): ... | ||
def log_result_regex(flag): ... | ||
def log_indexing(flag): ... | ||
def log_build_systems(flag): ... | ||
def score_selector(scope_name, selector): ... | ||
def load_resource(name): ... | ||
def load_binary_resource(name): ... | ||
def find_resources(pattern): ... | ||
def encode_value(val, pretty: bool = ...): ... | ||
def decode_value(data): ... | ||
def expand_variables(val, variables): ... | ||
def load_settings(base_name): ... | ||
def save_settings(base_name): ... | ||
def set_timeout(f, timeout_ms: int = ...): ... | ||
def set_timeout_async(f, timeout_ms: int = ...): ... | ||
def active_window(): ... | ||
def windows(): ... | ||
def get_macro(): ... | ||
|
||
class Window: | ||
window_id = ... # type: Any | ||
settings_object = ... # type: Any | ||
template_settings_object = ... # type: Any | ||
def __init__(self, id) -> None: ... | ||
def __eq__(self, other): ... | ||
def __bool__(self): ... | ||
def id(self): ... | ||
def is_valid(self): ... | ||
def hwnd(self): ... | ||
def active_sheet(self): ... | ||
def active_view(self): ... | ||
def run_command(self, cmd, args: Optional[Any] = ...): ... | ||
def new_file(self, flags: int = ..., syntax: str = ...): ... | ||
def open_file(self, fname, flags: int = ..., group: int = ...): ... | ||
def find_open_file(self, fname): ... | ||
def num_groups(self): ... | ||
def active_group(self): ... | ||
def focus_group(self, idx): ... | ||
def focus_sheet(self, sheet): ... | ||
def focus_view(self, view): ... | ||
def get_sheet_index(self, sheet): ... | ||
def get_view_index(self, view): ... | ||
def set_sheet_index(self, sheet, group, idx): ... | ||
def set_view_index(self, view, group, idx): ... | ||
def sheets(self): ... | ||
def views(self): ... | ||
def active_sheet_in_group(self, group): ... | ||
def active_view_in_group(self, group): ... | ||
def sheets_in_group(self, group): ... | ||
def views_in_group(self, group): ... | ||
def transient_sheet_in_group(self, group): ... | ||
def transient_view_in_group(self, group): ... | ||
def layout(self): ... | ||
def get_layout(self): ... | ||
def set_layout(self, layout): ... | ||
def create_output_panel(self, name, unlisted: bool = ...): ... | ||
def find_output_panel(self, name): ... | ||
def destroy_output_panel(self, name): ... | ||
def active_panel(self): ... | ||
def panels(self): ... | ||
def get_output_panel(self, name): ... | ||
def show_input_panel(self, caption, initial_text, on_done, on_change, on_cancel): ... | ||
def show_quick_panel(self, items, on_select, flags: int = ..., selected_index: int = ..., on_highlight: Optional[Any] = ...): ... | ||
def is_sidebar_visible(self): ... | ||
def set_sidebar_visible(self, flag): ... | ||
def is_minimap_visible(self): ... | ||
def set_minimap_visible(self, flag): ... | ||
def is_status_bar_visible(self): ... | ||
def set_status_bar_visible(self, flag): ... | ||
def get_tabs_visible(self): ... | ||
def set_tabs_visible(self, flag): ... | ||
def is_menu_visible(self): ... | ||
def set_menu_visible(self, flag): ... | ||
def folders(self): ... | ||
def project_file_name(self): ... | ||
def project_data(self): ... | ||
def set_project_data(self, v): ... | ||
def settings(self): ... | ||
def template_settings(self): ... | ||
def lookup_symbol_in_index(self, sym): ... | ||
def lookup_symbol_in_open_files(self, sym): ... | ||
def extract_variables(self): ... | ||
def status_message(self, msg): ... | ||
|
||
class Edit: | ||
edit_token = ... # type: Any | ||
def __init__(self, token) -> None: ... | ||
|
||
class Region: | ||
a = ... # type: Any | ||
b = ... # type: Any | ||
xpos = ... # type: Any | ||
def __init__(self, a, b: Optional[Any] = ..., xpos: int = ...) -> None: ... | ||
def __len__(self): ... | ||
def __eq__(self, rhs): ... | ||
def __lt__(self, rhs): ... | ||
def empty(self): ... | ||
def begin(self): ... | ||
def end(self): ... | ||
def size(self): ... | ||
def contains(self, x): ... | ||
def cover(self, rhs): ... | ||
def intersection(self, rhs): ... | ||
def intersects(self, rhs): ... | ||
|
||
class Selection: | ||
view_id = ... # type: Any | ||
def __init__(self, id) -> None: ... | ||
def __len__(self): ... | ||
def __getitem__(self, index): ... | ||
def __delitem__(self, index): ... | ||
def __eq__(self, rhs): ... | ||
def __lt__(self, rhs): ... | ||
def __bool__(self): ... | ||
def is_valid(self): ... | ||
def clear(self): ... | ||
def add(self, x): ... | ||
def add_all(self, regions): ... | ||
def subtract(self, region): ... | ||
def contains(self, region): ... | ||
|
||
class Sheet: | ||
sheet_id = ... # type: Any | ||
def __init__(self, id) -> None: ... | ||
def __eq__(self, other): ... | ||
def id(self): ... | ||
def window(self): ... | ||
def view(self): ... | ||
|
||
class View: | ||
view_id = ... # type: Any | ||
selection = ... # type: Any | ||
settings_object = ... # type: Any | ||
def __init__(self, id) -> None: ... | ||
def __len__(self): ... | ||
def __eq__(self, other): ... | ||
def __bool__(self): ... | ||
def id(self): ... | ||
def buffer_id(self): ... | ||
def is_valid(self): ... | ||
def is_primary(self): ... | ||
def window(self): ... | ||
def file_name(self): ... | ||
def close(self): ... | ||
def retarget(self, new_fname): ... | ||
def name(self): ... | ||
def set_name(self, name): ... | ||
def is_loading(self): ... | ||
def is_dirty(self): ... | ||
def is_read_only(self): ... | ||
def set_read_only(self, read_only): ... | ||
def is_scratch(self): ... | ||
def set_scratch(self, scratch): ... | ||
def encoding(self): ... | ||
def set_encoding(self, encoding_name): ... | ||
def line_endings(self): ... | ||
def set_line_endings(self, line_ending_name): ... | ||
def size(self): ... | ||
def begin_edit(self, edit_token, cmd, args: Optional[Any] = ...): ... | ||
def end_edit(self, edit): ... | ||
def is_in_edit(self): ... | ||
def insert(self, edit, pt, text): ... | ||
def erase(self, edit, r): ... | ||
def replace(self, edit, r, text): ... | ||
def change_count(self): ... | ||
def run_command(self, cmd, args: Optional[Any] = ...): ... | ||
def sel(self): ... | ||
def substr(self, x): ... | ||
def find(self, pattern, start_pt, flags: int = ...): ... | ||
def find_all(self, pattern, flags: int = ..., fmt: Optional[Any] = ..., extractions: Optional[Any] = ...): ... | ||
def settings(self): ... | ||
def meta_info(self, key, pt): ... | ||
def extract_scope(self, pt): ... | ||
def scope_name(self, pt): ... | ||
def match_selector(self, pt, selector): ... | ||
def score_selector(self, pt, selector): ... | ||
def find_by_selector(self, selector): ... | ||
def indented_region(self, pt): ... | ||
def indentation_level(self, pt): ... | ||
def has_non_empty_selection_region(self): ... | ||
def lines(self, r): ... | ||
def split_by_newlines(self, r): ... | ||
def line(self, x): ... | ||
def full_line(self, x): ... | ||
def word(self, x): ... | ||
def classify(self, pt): ... | ||
def find_by_class(self, pt, forward, classes, separators: str = ...): ... | ||
def expand_by_class(self, x, classes, separators: str = ...): ... | ||
def rowcol(self, tp): ... | ||
def text_point(self, row, col): ... | ||
def visible_region(self): ... | ||
def show(self, x, show_surrounds: bool = ...): ... | ||
def show_at_center(self, x): ... | ||
def viewport_position(self): ... | ||
def set_viewport_position(self, xy, animate: bool = ...): ... | ||
def viewport_extent(self): ... | ||
def layout_extent(self): ... | ||
def text_to_layout(self, tp): ... | ||
def layout_to_text(self, xy): ... | ||
def window_to_layout(self, xy): ... | ||
def window_to_text(self, xy): ... | ||
def line_height(self): ... | ||
def em_width(self): ... | ||
def is_folded(self, sr): ... | ||
def folded_regions(self): ... | ||
def fold(self, x): ... | ||
def unfold(self, x): ... | ||
def add_regions(self, key, regions, scope: str = ..., icon: str = ..., flags: int = ...): ... | ||
def get_regions(self, key): ... | ||
def erase_regions(self, key): ... | ||
def add_phantom(self, key, region, content, layout, on_navigate: Optional[Any] = ...): ... | ||
def erase_phantoms(self, key): ... | ||
def erase_phantom_by_id(self, pid): ... | ||
def query_phantom(self, pid): ... | ||
def query_phantoms(self, pids): ... | ||
def assign_syntax(self, syntax_file): ... | ||
def set_syntax_file(self, syntax_file): ... | ||
def symbols(self): ... | ||
def get_symbols(self): ... | ||
def indexed_symbols(self): ... | ||
def set_status(self, key, value): ... | ||
def get_status(self, key): ... | ||
def erase_status(self, key): ... | ||
def extract_completions(self, prefix, tp: int = ...): ... | ||
def find_all_results(self): ... | ||
def find_all_results_with_text(self): ... | ||
def command_history(self, delta, modifying_only: bool = ...): ... | ||
def overwrite_status(self): ... | ||
def set_overwrite_status(self, value): ... | ||
def show_popup_menu(self, items, on_select, flags: int = ...): ... | ||
def show_popup(self, content, flags: int = ..., location: int = ..., max_width: int = ..., max_height: int = ..., on_navigate: Optional[Any] = ..., on_hide: Optional[Any] = ...): ... | ||
def update_popup(self, content): ... | ||
def is_popup_visible(self): ... | ||
def hide_popup(self): ... | ||
def is_auto_complete_visible(self): ... | ||
|
||
class Settings: | ||
settings_id = ... # type: Any | ||
def __init__(self, id) -> None: ... | ||
def get(self, key, default: Optional[Any] = ...): ... | ||
def has(self, key): ... | ||
def set(self, key, value): ... | ||
def erase(self, key): ... | ||
def add_on_change(self, tag, callback): ... | ||
def clear_on_change(self, tag): ... | ||
|
||
class Phantom: | ||
region = ... # type: Any | ||
content = ... # type: Any | ||
layout = ... # type: Any | ||
on_navigate = ... # type: Any | ||
id = ... # type: Any | ||
def __init__(self, region, content, layout, on_navigate: Optional[Any] = ...) -> None: ... | ||
def __eq__(self, rhs): ... | ||
|
||
class PhantomSet: | ||
view = ... # type: Any | ||
key = ... # type: Any | ||
phantoms = ... # type: Any | ||
def __init__(self, view, key: str = ...) -> None: ... | ||
def __del__(self): ... | ||
def update(self, new_phantoms): ... |
Oops, something went wrong.