Skip to content

bug: from_native on symbol of type Any is revealed to be LazyFrame #2789

@MarcoGorelli

Description

@MarcoGorelli
from typing import Any
import narwhals as nw


def func(df: Any) -> None:
    reveal_type(nw.from_native(df))

I think it should be revealed as DataFrame | LazyFrame

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions