traits icon indicating copy to clipboard operation
traits copied to clipboard

Some definitions in traits-stubs need to be updated

Open rahulporuri opened this issue 4 years ago • 0 comments

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

rahulporuri avatar Jun 26 '20 10:06 rahulporuri