Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate imports from traitsui.editors #2000

Merged
merged 5 commits into from
Apr 12, 2023

Conversation

corranwebster
Copy link
Contributor

Imports should be from traitsui.editors.api. This adds a simple test to ensure imports expected.

Fixes #1617

Checklist

  • Add a news fragment if this PR is news-worthy for end users. (see docs/releases/README.rst)

Imports should be from traitsui.editors.api.  This adds a simple test to
ensure imports expected.
@corranwebster corranwebster marked this pull request as draft March 21, 2023 14:43
@corranwebster
Copy link
Contributor Author

Converting to draft since this requires Python 3.7 - depends on #1994

@corranwebster corranwebster marked this pull request as ready for review March 24, 2023 17:01
Copy link
Member

@dpinte dpinte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@corranwebster one minor question. Otherwise, looks good to me.

class TestEditorsImports(unittest.TestCase):

def test_editors_import_warns(self):
# Importing from pyface.editors is deprecated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

traitsui, not pyface?

@corranwebster corranwebster merged commit feeda9a into main Apr 12, 2023
19 checks passed
@corranwebster corranwebster deleted the enh/deprecate-editor-import branch April 12, 2023 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cleanup traitsui.editors init module?
2 participants