microsoft / pyright

Static Type Checker for Python
Other
13.12k stars 1.4k forks source link

Import "flask_mysqldb" could not be resolvedPylancereportMissingImports) #8850

Closed Chaudharyabhay398 closed 2 weeks ago

Chaudharyabhay398 commented 2 weeks ago

Note: if you are reporting a wrong signature of a function or a class in the standard library, then the typeshed tracker is better suited for this report: https://github.com/python/typeshed/issues.

If you have a question about typing or a behavior that you’re seeing in Pyright (as opposed to a bug report or enhancement request), consider posting to the Pyright discussion forum.

Describe the bug A clear and concise description of the behavior you are seeing and the expected behavior along with steps to reproduce it.

Code or Screenshots If possible, provide a minimal, self-contained code sample (surrounded by triple back ticks) to demonstrate the issue. The code should define or import all referenced symbols.

def foo(self) -> str:
    return 3

If your code relies on symbols that are imported from a third-party library, include the associated import statements and specify which versions of those libraries you have installed.

VS Code extension or command-line Are you running pyright as a VS Code extension, a language server in another editor, integrated into Pylance, or the command-line tool? Which version?

erictraut commented 2 weeks ago

You haven't provided enough information in the bug report for me to repro the problem you're seeing. In the future, please fill out the requested information in the bug template. If this involves third-party libraries, the name and version of the library is required.

Based on the title of the bug report, this is very unlikely to be a bug in pyright but rather a configuration issue or an issue with the library or module. If you have questions about how to diagnose issues like this, feel free to post your question to the "discussions" section.