enthought / enthought/traits

Some definitions in traits-stubs need to be updated

Open
#1,228 0 comments 0 reactions 0 assignees View on GitHub
component: typing stubs type: enhancement
Dominant language
Python
Stars
462
Forks
90
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.