typeshed icon indicating copy to clipboard operation
typeshed copied to clipboard

Automatization idea: find duplicated constants

Open sobolevn opened this issue 3 years ago • 0 comments

Context: https://github.com/python/typeshed/pull/7065

Sometimes python / stubs do re-export constans from other modules. In this case we can:

  1. Use re-export as well (correct option)
  2. 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.

sobolevn avatar Jan 28 '22 08:01 sobolevn