typeshed
typeshed copied to clipboard
Automatization idea: find duplicated constants
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.