'pyright not autocompleting dlib for python

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.



Solution 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 fannheyward