You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's currently a DeprecationWarning issued if one tries to import editors from traitsui.editors instead of from traitsui.editors.api. However, the criterion for issuing the warning is a little too broad: the check is if name in traitsui.editors.api.__dict__, and this picks up things like the __warningsregistry__ attribute. This results in the warning being issued unexpectedly (e.g., as a result of the warnings machinery accessing the traitsui.editors.__warningsregistry).
This may be a use-case for adding an __all__ to traits.editors.api. Or we could tighten up the check.
The text was updated successfully, but these errors were encountered:
There's currently a
DeprecationWarning
issued if one tries to import editors fromtraitsui.editors
instead of fromtraitsui.editors.api
. However, the criterion for issuing the warning is a little too broad: the check isif name in traitsui.editors.api.__dict__
, and this picks up things like the__warningsregistry__
attribute. This results in the warning being issued unexpectedly (e.g., as a result of the warnings machinery accessing thetraitsui.editors.__warningsregistry
).This may be a use-case for adding an
__all__
totraits.editors.api
. Or we could tighten up the check.The text was updated successfully, but these errors were encountered: