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

DM-33280: Turn Packages into a Mapping #57

Merged
merged 1 commit into from Jan 27, 2022
Merged

DM-33280: Turn Packages into a Mapping #57

merged 1 commit into from Jan 27, 2022

Conversation

timj
Copy link
Member

@timj timj commented Jan 15, 2022

No description provided.

@ktlim
Copy link
Contributor

ktlim commented Jan 19, 2022

If this is "a wrapper around a dict", can't it just inherit from one? It doesn't seem like anyone's supposed to actually construct it with any other kind of Mapping.

python/lsst/base/packages.py Outdated Show resolved Hide resolved
@timj timj changed the title DM-33280: Add a Packages.to_dict method DM-33280: Turn Packages into a Mapping Jan 27, 2022
This allows for the removal of a lot of compatibility methods.
We likely don't the _names optimization given that dict keys
are now set-like.
@timj timj merged commit 8cdbaf4 into main Jan 27, 2022
@timj timj deleted the tickets/DM-33280 branch January 27, 2022 22:15
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.

None yet

2 participants