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

Use the application registry as the default unit registry #8

Merged
merged 1 commit into from Feb 24, 2024

Conversation

leroyvn
Copy link
Collaborator

@leroyvn leroyvn commented Feb 24, 2024

This PR switches the default unit registry from a regular UnitRegistry instance to the Pint application registry. This is how the Pint documentation recommends using a shared registry. This makes it less dangerous to support automatic string interpretation: we might finally add this as an opt-in feature.

@leroyvn leroyvn marked this pull request as ready for review February 24, 2024 16:09
@leroyvn leroyvn merged commit ae21bb5 into main Feb 24, 2024
8 checks passed
@leroyvn leroyvn deleted the application_registry branch February 24, 2024 16:11
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

1 participant