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: enable ModuleType and str for backend in .lazy() method #1914

Merged
merged 1 commit into from
Feb 2, 2025

Conversation

FBruzzesi
Copy link
Member

What type of PR is this? (check all applicable)

  • πŸ’Ύ Refactor
  • ✨ Feature
  • πŸ› Bug Fix
  • πŸ”§ Optimization
  • πŸ“ Documentation
  • βœ… Test
  • 🐳 Other

Related issues

Checklist

  • Code follows style guide (ruff)
  • Tests added
  • Documented the changes

If you have comments or can explain your changes, please do so below

@FBruzzesi
Copy link
Member Author

I think it would be nice if for the release we have a symmetry in what we can now allow in .collect() and .lazy()

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @FBruzzesi !

@MarcoGorelli MarcoGorelli added the enhancement New feature or request label Feb 2, 2025
@MarcoGorelli MarcoGorelli merged commit adb5a4a into main Feb 2, 2025
23 checks passed
@MarcoGorelli MarcoGorelli deleted the feat/dataframe-lazy-with-string-and-modules branch February 2, 2025 16:17
@dangotbanned
Copy link
Member

@MarcoGorelli @FBruzzesi
I was going to suggest this:

IntoBackend: TypeAlias = "ModuleType | Implementation | str" # or `IntoImplementation`
"""<put your docs here>"""


def lazy(self: Self, *, backend: IntoBackend | None = None) ->  LazyFrame[Any]: ...

Given that #1915 is looking to shorten the docstrings, this would be something you can reuse in a lot of places

@MarcoGorelli
Copy link
Member

nice idea, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

enh: Add backend argument to lazy
3 participants