Skip to content

Deduplicate#27

Merged
leroyvn merged 1 commit intomainfrom
deduplicate
Jan 2, 2026
Merged

Deduplicate#27
leroyvn merged 1 commit intomainfrom
deduplicate

Conversation

@leroyvn
Copy link
Copy Markdown
Owner

@leroyvn leroyvn commented Jan 1, 2026

This PR refactors the codebase to make it DRYer.

  • Exception handling code is factored into a raise_or_handle() helper
    that appropriately raises or uses a ValidationContext to handle
    errors.

  • Unit handling features are factored into a module that takes care of
    checking if Pint is installed.

This commit refactors the codebase to make it DRYer.

* Exception handling code is factored into a `raise_or_handle()` helper
  that appropriately raises or uses a `ValidationContext` to handle
  errors.

* Unit handling features are factored into a module that takes care of
  checking if Pint is installed.
@leroyvn leroyvn merged commit 08cf9b9 into main Jan 2, 2026
11 checks passed
@leroyvn leroyvn deleted the deduplicate branch January 2, 2026 19: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.

1 participant