traits
traits copied to clipboard
Some definitions in traits-stubs need to be updated
For reasons that I am not aware of, it looks like some traits-stubs were defined as Any
instead of being more specific. Here are a few examples which can be updated/be made more specific -
https://github.com/enthought/traits/blob/117b37a2eb88820133851d975916c114ba520e9e/traits-stubs/traits-stubs/constants.pyi#L51-L53
https://github.com/enthought/traits/blob/117b37a2eb88820133851d975916c114ba520e9e/traits-stubs/traits-stubs/constants.pyi#L68-L69
https://github.com/enthought/traits/blob/117b37a2eb88820133851d975916c114ba520e9e/traits-stubs/traits-stubs/ctrait.pyi#L34
https://github.com/enthought/traits/blob/117b37a2eb88820133851d975916c114ba520e9e/traits-stubs/traits-stubs/editor_factories.pyi#L21
cached editor factories can be removed - https://github.com/enthought/traits/blob/117b37a2eb88820133851d975916c114ba520e9e/traits-stubs/traits-stubs/editor_factories.pyi#L13-L20