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

Revert the deprecation of TraitMap #1365

Merged
merged 1 commit into from
Nov 19, 2020
Merged

Conversation

mdickinson
Copy link
Member

@mdickinson mdickinson commented Nov 18, 2020

The deprecation of TraitMap in #974 was premature: Traits itself still uses TraitMap internally (through Trait), and the difficulty of removing that usage demonstrates that there isn't an obvious replacement.

This PR undoes the deprecation of TraitMap. Note that TraitPrefixList and TraitPrefixMap remain deprecated: those classes are not used internally, and PrefixList and PrefixMap should provide a reasonable replacement.

See also #1336.

Closes #1258.

Checklist

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

Copy link
Contributor

@kitchoi kitchoi left a comment

Choose a reason for hiding this comment

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

LGTM

@mdickinson mdickinson merged commit c1b9d6f into master Nov 19, 2020
@mdickinson mdickinson deleted the fix/undeprecate-trait-map branch November 19, 2020 08:19
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.

Traits emits its own deprecation warning on TraitMap
2 participants