Skip to content

typing.IntoSchema too narrow #3257

@MarcoGorelli

Description

@MarcoGorelli

This runs fine, as expected:

print(nw.from_dict({'a': [1,2,3]}, schema={'a': nw.Int64}, backend='pyarrow'))

but the currently typing wants us to write

print(nw.from_dict({'a': [1,2,3]}, schema={'a': nw.Int64()}, backend='pyarrow'))

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