Category "pylance"

Why does the type-hinting for enum show an error on VS Code?

I've run into an issue where the expected return type (Enum) and the actual return type do not match, even though they should. The weird thing is that depending

Why can't I import requests in VS Code?

I want to use request module, but whenever I tried to import requests I got this message: import "requests" could not be resolved from source Pylance I already

How to deal with unknown types of functions/methods from imported modules

I'm wondering what's the best approach to deal with unknown types of functions/methods associated with other modules. Note that I'm using strict mode For exampl

'Import "Path.to.own.script" could not be resolved Pylance (reportMissingImports)' in VS Code using Python 3.x on Ubuntu 20.04 LTS

It is a similar situation I'd encountered several months ago using pylint prior to pylance: My python 3.9x - script (using VS Code on Ubuntu 20.04 LTS) starts w

Import pandas could not be resolved from source Pylance(reportMissingModuleSource)

I've been trying to use the packages pandas, numpy, matplotlib, seaborn in my "Visual Studio Code", but the program keeps showing me the following message: "im

Import "matplotlib" could not be resolved from source Pylance(reportMissingModuleSource)

whenever I try to import matplotlib or matplotlib.pyplot in VS Code I get the error in the title: Import "matplotlib" could not be resolved from source Pylance(