-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Remove unnecessary IntermediateSnapshotNode and EmptySnapshotConfig #10332
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #10332 +/- ##
==========================================
- Coverage 88.83% 88.78% -0.06%
==========================================
Files 180 180
Lines 22490 22479 -11
==========================================
- Hits 19980 19958 -22
- Misses 2510 2521 +11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
||
assert_symmetric(node, node_dict, SnapshotNode) | ||
assert SnapshotNode.from_dict(inter.to_dict(omit_none=True)) == node |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this no longer necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was converting from an IntermediateSnapshotNode to a SnapshotNode. The original point of the IntermediateSnapshotNode was that it wouldn't require the validations that we do on a SnapshotNode (but I think that actually broke quite a while back). I recently did the ticket to move validation of SnapshotNodes to a post-parsing step. So we definitely don't need the IntermediateSnapshotNode anymore.
resolves #10326
Problem
We no longer need the IntermediateSnapshotNode and EmptySnapshotConfig classes, or the IntermediateNode typevar.
Solution
Remove them.
Checklist