Automatization idea: find duplicated constants
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 5.1k
- Forks
- 2.1k
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 82
Description
Context: https://github.com/python/typeshed/pull/7065
Sometimes python / stubs do re-export constans from other modules.
In this case we can:
- Use re-export as well (correct option)
- Duplicate these constants (ok-ish, but not great)
Right now we do nothing to detect the second case.
I guess, that we can improve this!
We can write some kind of non-blocking helper who searches related modules for constants with the same names and suggests to re-use them if needed.
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 with the context in python/typeshed pull request 7065 and review how related modules re-export constants. Then determine the scope of a non-blocking helper that finds duplicated constant names and suggests reuse; done means the approach and expected behavior are defined well enough to implement.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100