Skip to content

feat: Resolve plugins via from_backend - #3822

Open
FBruzzesi wants to merge 3 commits into
feat/extend-from-backendfrom
feat/plugin-from-backend
Open

feat: Resolve plugins via from_backend#3822
FBruzzesi wants to merge 3 commits into
feat/extend-from-backendfrom
feat/plugin-from-backend

Conversation

@FBruzzesi

Copy link
Copy Markdown
Member

Description

Addresses #3753 (comment)

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

  • 💾 Refactor
  • ✨ Feature
  • 🐛 Bug Fix
  • 🔧 Optimization
  • 📝 Documentation
  • ✅ Test
  • 🐳 Other

@FBruzzesi
FBruzzesi requested a review from dangotbanned July 27, 2026 20:01
@FBruzzesi FBruzzesi added enhancement New feature or request extensibility labels Jul 27, 2026
Comment thread src/narwhals/_utils.py
backend: IntoBackend[Backend | PluginName], # noqa: ARG001
impl: Implementation,
/,
) -> TypeGuard[IntoBackend[PluginName]]:

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I spent an unhealthy amount of time on this. @dangotbanned I am sure this is obvious to you, but it's still a bit mysterious for me

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I will try to work through this with you soon 🙏

Comment thread src/narwhals/_utils.py
Comment on lines +1659 to +1660
backend: IntoBackend[Backend | PluginName], # noqa: ARG001
impl: Implementation,

@FBruzzesi FBruzzesi Jul 27, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

impl is a parameter rather than re-derived here since in eager_namespace it's already computed (it's not in _io_method)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request extensibility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants