Skip to content

Commit

Permalink
refactor: tidy codes
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Cherng <[email protected]>
  • Loading branch information
jfcherng committed Jun 17, 2024
1 parent 0e6b193 commit adf17c0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugin/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
from .template import render_template
from .venv_finder import VenvInfo, find_venv_by_finder_names, get_finder_name_mapping

WindowId = int


@dataclass
class WindowAttr:
Expand All @@ -44,8 +46,8 @@ class LspBasedpyrightPlugin(NpmClientHandler):
server_version = ""
"""The version of the language server."""

window_attrs: defaultdict[int, WindowAttr] = defaultdict(WindowAttr)
"""Per-window attributes. I.e., per-session attributes. The key is the window ID."""
window_attrs: defaultdict[WindowId, WindowAttr] = defaultdict(WindowAttr)
"""Per-window attributes. I.e., per-session attributes."""

@classmethod
def required_node_version(cls) -> str:
Expand Down

0 comments on commit adf17c0

Please sign in to comment.