pyright not autocompleting dlib for python

810 Views Asked by At

Specs:

  • Mac M1 Pro
  • Dlib installed with conda (also tried pip3 and it gave the same results)
  • Vscode and coc.nvim using pyright (both using the same language server)
  • python 3.9.12
import dlib

dlib.get_frontal_face_detector()

Currently, when I run the above script with python, it works with no hiccups, but when I try to autocomplete the modules of dlib in VScode or in vim (using coc.nvim) it will not autocomplete the modules of dlib.

1

There are 1 best solutions below

1
On

It's Pyright's issue, Pyright needs type stub files to work.