Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions plugin/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,7 @@
T_Callable,
)
from .ui import ViewCompletionManager, ViewPanelCompletionManager, WindowConversationManager
from .utils import (
all_views,
all_windows,
debounce,
find_view_by_id,
get_session_setting,
status_message,
)
from .utils import all_views, all_windows, debounce, find_view_by_id, get_session_setting, status_message
from .version_manager import version_manager

WindowId = int
Expand Down
6 changes: 3 additions & 3 deletions plugin/decorators.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from __future__ import annotations

from functools import wraps
from typing import Any, Callable, cast

from .types import T_Callable
from .utils import (
is_active_view,
)
from .utils import is_active_view


def must_be_active_view(*, failed_return: Any = None) -> Callable[[T_Callable], T_Callable]:
Expand Down
5 changes: 2 additions & 3 deletions plugin/types.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
from __future__ import annotations

from dataclasses import dataclass
from typing import Any, Callable, Literal, Tuple, TypedDict, TypeVar
from typing import Any, Callable, Literal, Tuple, TypeVar, TypedDict

from LSP.plugin.core.protocol import Position as LspPosition
from LSP.plugin.core.protocol import Range as LspRange
from LSP.plugin.core.protocol import Position as LspPosition, Range as LspRange
from LSP.plugin.core.typing import StrEnum

T_Callable = TypeVar("T_Callable", bound=Callable[..., Any])
Expand Down
2 changes: 1 addition & 1 deletion plugin/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from collections.abc import Callable, Generator, Iterable
from functools import wraps
from pathlib import Path
from typing import IO, Any, Mapping, Sequence, TypeVar, Union, cast
from typing import Any, IO, Mapping, Sequence, TypeVar, Union, cast

import sublime
from LSP.plugin.core.sessions import Session
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,9 @@ select = [
"SIM",
]
ignore = ["E203", "SIM102", "SIM108"]

[tool.ruff.lint.isort]
case-sensitive = true
combine-as-imports = true
order-by-type = false
required-imports = ["from __future__ import annotations"]
Loading