Skip to content

Unit format refactoring - #11830

Merged
adrn merged 1 commit into
astropy:mainfrom
mhvk:unit-format-refactoring
Jun 9, 2021
Merged

adrn merged 1 commit into
astropy:mainfrom
mhvk:unit-format-refactoring

Conversation

@mhvk

@mhvk mhvk commented Jun 9, 2021

Copy link
Copy Markdown
Contributor

An old metaclass I happened to come across while doing #11829 - which is just to keep a registry, something for which __init_subclass__ is very well suitable. Partially addresses #7144 (and similar to what @adrn did in #11090).

@mhvk
mhvk force-pushed the unit-format-refactoring branch from a500e35 to 135c841 Compare June 9, 2021 18:50

@pllim pllim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I trust the tests but I'll leave this open for Adrian to have a look too. Thanks!

@adrn adrn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice! This LGTM

@adrn
adrn merged commit d33db76 into astropy:main Jun 9, 2021
@mhvk
mhvk deleted the unit-format-refactoring branch June 9, 2021 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants