microsoft / microsoft/pyright

Augment `--verifytypes` to report missing stubs when native extension modules are present

Open
#10,627 0 comments 1 reaction 0 assignees View on GitHub
enhancement request
Dominant language
Python
Stars
15.6k
Forks
1.8k
Avg merge
12h 13m
Merged PRs (30d)
52

Description

If a library includes a native extension module (e.g. a ".so" file on Mac) but has no corresponding type stub, it would be nice if `--verifytypes` included this in its type completeness report.

See [this discussion](https://github.com/microsoft/pyright/discussions/10615#discussioncomment-13487596) for details.

Contributor guide

Open the contributing guide

Research direction

Start with the --verifytypes entry point and read the linked discussion for the expected treatment of native extension modules. Trace how the type completeness report discovers package modules, then identify the relevant tests before implementing coverage for an extension with no corresponding stub. Done means the report identifies that missing stub consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.