Skip to content

Move dict_union#296

Closed
ValerianRey wants to merge 1 commit intomainfrom
move-dicts_union
Closed

Move dict_union#296
ValerianRey wants to merge 1 commit intomainfrom
move-dicts_union

Conversation

@ValerianRey
Copy link
Copy Markdown
Contributor

@ValerianRey ValerianRey commented Apr 3, 2025

  • Move dict_union from _utils.py to stack.py and make it "protected"

Since dict_union is only used in stacks.py, I think it's better to define it there. It makes less back-and-forth when reading the code, and it reduces the number of things that _utils.py has to contain.

Because it's now a local helper function, it should also become protected. This PR thus also makes it "protected".

@ValerianRey ValerianRey added package: autojac cc: refactor Conventional commit type for any refactoring, not user-facing, and not typing or perf improvements labels Apr 3, 2025
@ValerianRey ValerianRey self-assigned this Apr 3, 2025
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
src/torchjd/autojac/_transform/_utils.py 100.00% <ø> (ø)
src/torchjd/autojac/_transform/stack.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ValerianRey ValerianRey changed the title Move dict_union from _utils.py to stack.py and make it "protected" Move dict_union Apr 3, 2025
@ValerianRey
Copy link
Copy Markdown
Contributor Author

Closing this in favor of the more complete PR #298

@ValerianRey ValerianRey closed this Apr 3, 2025
@ValerianRey ValerianRey deleted the move-dicts_union branch April 4, 2025 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cc: refactor Conventional commit type for any refactoring, not user-facing, and not typing or perf improvements package: autojac

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant