Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Make unit converters also handle instances of subclasses.#13536
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Would it be better to make the cache subclass dict and encapsulate the behavior there? |
It already subclasses dict and the "dict" interface is used for registering converters, which does not go through this logic; so keeping the entire get_converter logic in a separate method looks better to me. |
Just ran into this bug in astropy and have createdastropy/astropy#8818 to work around it by registering all subclasses of our |
rebased |
Uh oh!
There was an error while loading.Please reload this page.
PR Summary
Closes#11275.
PR Checklist