-
Notifications
You must be signed in to change notification settings - Fork 122
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
Simpler extension interface #1243
Conversation
Codecov ReportAttention:
📢 Thoughts on this report? Let us know!. |
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.
Concept seems good to me! Hopefully this will be a pretty low maintenance burden once it gets set up, since most of the work is still in the extensions themselves.
91e76c1
to
762fe7b
Compare
okie dokie! It's greeeeennnn over here |
I guess I can do the docs updates on this branch as well. |
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.
No notes on the impl, I'm 👍🏼 ^ 2. Looks great. I think we just need docstrings on the functions, and maybe a "Making a new extension class" tutorial? The tutorial could be its own ticket too if you want to push this in first.
With that, I could write code as:
instead of:
|
I think the use of
I believe @jsignell started with an
The only downside here is that for type checking, |
I didn't call it out in my example, but there is also a if item.ext.has("eo"):
print(item.ext.eo.cloud_cover) Does that feel better? |
I'm fine with whatever y'all decide on. |
Finally circled back. I took a pass at the docs and tutorials as well. |
🎉 thanks for this @jsignell really stoked about it. |
Related Issue(s):
Description:
When the extension is implemented:
When the extension isn't implemented:
Add an extension
PR Checklist:
pre-commit
hooks pass locallyscripts/test
)