microsoft / microsoft/pyright

Support for multiple stub folders

Open
#11,299 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement request
Dominant language
Python
Stars
15.6k
Forks
1.8k
Avg merge
12h 13m
Merged PRs (30d)
52

Description

I know this was already talked about:
https://github.com/microsoft/pyright/issues/3318

I'd like to add this functionality for a different use case. We're working on implementing what @Viicos talked about here:
https://github.com/Viicos/django-autotyping

Essentially, we're going to have an external server running next to Pylance/Pyright that generates type stubs. (With Django being our first use case).

In order to support this we need a type stub directory we can write to and if the user already has one set or their default typings folder is not writeable, we won't be able to generate the stubs. So we want to change the 'stubs' setting to a list instead of a single entry.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing stubs setting and the default typings folder handling, then read issue #3318 and the linked django-autotyping proposal for context. Done means the configuration accepts multiple stub folders, including a writable destination when an existing folder is unavailable, while retaining current single-folder behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.