Support for multiple stub folders
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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