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

Remove outdated alias #1681

Merged
merged 1 commit into from
Aug 5, 2022
Merged

Remove outdated alias #1681

merged 1 commit into from
Aug 5, 2022

Conversation

mdickinson
Copy link
Member

This PR removes an enumerate = enumerate assignment that should no longer be necessary.

Technically, this is a backwards incompatible change: anyone who imports enumerate from traits.trait_base will no longer be able to do so. However, the workaround is immediate (just delete that import so that you pick up the built-in enumerate), and code that's doing this is already wrong on so many levels, so I don't feel bad about making this change without a deprecation period.

Checklist

  • Tests
  • Update API reference (docs/source/traits_api_reference)
  • Update User manual (docs/source/traits_user_manual)
  • Update type annotation hints in traits-stubs

This PR removes an `enumerate = enumerate` assignment that should no longer be necessary.

Technically, this is a backwards incompatible change: anyone who imports `enumerate` from `traits.trait_base` will no longer be able to do so. However, the workaround is immediate (just delete that import so that you pick up the built-in `enumerate`), and code that's doing this is already wrong on so many levels, so I don't feel bad about making this change without a deprecation period.
@mdickinson mdickinson merged commit 0227fda into main Aug 5, 2022
@mdickinson mdickinson deleted the remove-enumerate-alias branch August 5, 2022 07:45
mdickinson added a commit that referenced this pull request Aug 9, 2022
This PR removes an `enumerate = enumerate` assignment that should no longer be necessary.

Technically, this is a backwards incompatible change: anyone who imports `enumerate` from `traits.trait_base` will no longer be able to do so. However, the workaround is immediate (just delete that import so that you pick up the built-in `enumerate`), and code that's doing this is already wrong on so many levels, so I don't feel bad about making this change without a deprecation period.

(cherry picked from commit 0227fda)
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.

2 participants