'Why am I getting this Warning while importing my own module in vscode using python?

I'm trying to import a simple module located in the same directory as the actual file. My code runs as it's supposed to, but vscode underlines the module name. This is the "warning" that I get:

Import "module" could not be resolved Pylance(reportMissingImports),

and this is my code:

Module:

def build():
    print("building")

Actual file:

from module import build

build()

Thanks in advance



Sources

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

Source: Stack Overflow

Solution Source