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 9938d19 commit 1732e0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 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,7 +46,7 @@ class LspPyrightPlugin(NpmClientHandler):
server_version = ""
"""The version of the language server."""

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

@classmethod
Expand Down

0 comments on commit 1732e0e

Please sign in to comment.