This appears when Pylance finds a stub ( .pyi ) but not the implementation. Run:
Despite Poetry successfully managing your dependencies, (Microsoft’s static type checker and language server) cannot find them. This disconnect happens because Pylance and Poetry speak different languages regarding environment paths.
: Press F1 , type Developer: Reload Window , and hit Enter to force Pylance to rescan your environment.