Skip to content

Commit 8ba8759

Browse files
committed
chore(ci): fix pyright warning
1 parent b2682f5 commit 8ba8759

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

lsp_utils/_client_handler/abstract_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def on_pre_start(cls, window: sublime.Window, initiating_view: sublime.View,
143143
extra_paths = cls.get_additional_paths()
144144
if extra_paths:
145145
original_path_raw = configuration.env.get('PATH') or ''
146-
if isinstance(original_path_raw, str): # pyright: ignore[reportUnnecessaryIsInstance]
146+
if isinstance(original_path_raw, str):
147147
original_paths = original_path_raw.split(path.pathsep)
148148
else:
149149
original_paths = original_path_raw

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,15 @@ ignore_errors = true
5151
ignore_missing_imports = true
5252

5353
[tool.pyright]
54+
extraPaths = ["..", "../LSP/stubs", "../sublime_lib"]
55+
ignore = ["**/third_party/"]
5456
pythonVersion = "3.8"
5557
reportAny = "none"
5658
reportDeprecated = "none"
5759
reportExplicitAny = "none"
5860
reportMissingModuleSource = "none"
5961
reportUnusedCallResult = "none"
60-
ignore = ["**/third_party/"]
61-
extraPaths = ["..", "../LSP/stubs", "../sublime_lib"]
62+
typeCheckingMode = "standard"
6263

6364
[tool.ruff]
6465
line-length = 120

0 commit comments

Comments
 (0)