Repository navigation
chore(python): refactor origin usage - #8812
Merged
Merged
Conversation
helderco
marked this pull request as ready for review
October 29, 2024 22:51
helderco
requested review from
TomChv and
jedevc
and removed request for
a team
October 29, 2024 22:51
helderco
force-pushed
the
python/mod-refactor-origin-usage
branch
from
October 29, 2024 23:39
d3ff37d to
4745548
Compare
This was referenced Oct 30, 2024
jedevc
approved these changes
Oct 30, 2024
Contributor
|
LGTM once checks are passing 🎉 |
helderco
force-pushed
the
python/mod-refactor-origin-usage
branch
2 times, most recently
from
October 30, 2024 16:48
a0d01e9 to
e927c7c
Compare
Contributor
Author
|
What's up with CI? I keep getting: It's flaking a lot. |
jedevc
force-pushed
the
python/mod-refactor-origin-usage
branch
2 times, most recently
from
October 31, 2024 11:38
1c81e36 to
fe7f1c4
Compare
helderco
force-pushed
the
python/mod-refactor-origin-usage
branch
3 times, most recently
from
November 2, 2024 15:51
3db59d2 to
f57468a
Compare
It's now possible to simplify a lot of things since we no longer support top-level functions. Makes the code easier to read and maintain, fixes a few typing bugs, and is more approachable as a example for new SDKs. Signed-off-by: Helder Correia <[email protected]>
Signed-off-by: Helder Correia <[email protected]>
Signed-off-by: Helder Correia <[email protected]>
helderco
force-pushed
the
python/mod-refactor-origin-usage
branch
from
November 2, 2024 19:05
f57468a to
0d79a3e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This is a split from #8709
Follow-up cleanup from:
It's now possible to simplify a lot of things since we no longer support top-level functions. Makes the code easier to read and maintain, fixes a few typing bugs, and is more approachable as a example for new SDKs.
These changes are implementation details. No user facing feature is supposed to have changed. Relying on tests to confirm that.
Moved all registration to
dagger.mod.Module:registerI felt a bit frustrated on multiple occasions that I had to move between
_module.pyand_resolver.py(inFieldResolverinFunctionResolver) to teach how an SDK registers a module’s types.As I was simplifying things, I also moved all the registration code into the single
dagger.mod.Module:_registermethod, so it can be more easily understood.