Skip to content
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

feat: bolt.contrib.resource_generator #103

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RitikShah
Copy link
Member

ResourceGenerator is a sugar-y wrapper around ctx.generate.

I think the _generator field is fine, but it might be alright to just have a generator or generate field or property without the _. If there's a name collision, the __getitem__ bypass always exist.

This idea is separate and perhaps complimentary to the ~ idea. The __call__ stuff was removed since it references bolt-expressions, we can add our own contrib that inherits this ResourceGenerator and adds the __call__ sugar!

Discord Ref

`ResourceGenerator` is a sugar-y wrapper around `ctx.generate`
@RitikShah RitikShah changed the title feat: beet.contrib.resource_generator feat: bolt.contrib.resource_generator Apr 10, 2023
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