Skip to content

Commit 2527a76

Browse files
authored
Fix pyright breakage when vllm and llama_cpp are not installed (#1240)
1 parent 18d3341 commit 2527a76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/inference/test_inference_engine_init.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@
3030

3131
# Check if optional dependencies are available
3232
try:
33-
import vllm # noqa: F401
33+
import vllm # noqa: F401 # pyright: ignore[reportMissingImports]
3434

3535
vllm_import_failed = False
3636
except ImportError:
3737
vllm_import_failed = True
3838

3939
try:
40-
import llama_cpp # noqa: F401
40+
import llama_cpp # noqa: F401 # pyright: ignore[reportMissingImports]
4141

4242
llama_cpp_import_failed = False
4343
except ImportError:

0 commit comments

Comments
 (0)