microsoft / pylance-release

Documentation and issues for Pylance
Creative Commons Attribution 4.0 International
1.72k stars 769 forks source link

Pylance complains about "stub file not found" for partial stubs #6575

Open colinfang opened 1 month ago

colinfang commented 1 month ago

A simple example would be


import scipy`

# Stub file not found for "scipy" [reportMissingTypeStubs] 

Because the bundled scipy-stub has partial\n in a py.typed file

If I delete partial\n in the file, the warning goes away.

debonte commented 1 month ago

Thanks for the issue. I was able to repro this.

Triage: It's not a recent regression -- it also repros in 2023.12.1.