Skip to content

Use Literal instead of str in DataFrame.transform #1676

@cmp0xff

Description

@cmp0xff

In DataFrame.transform, all str's are accepted by the stubs at the moment.

After #1672, we can switch to a Literal to restrict the input, and also a few negative tests in TYPE_CHECKING_INVALID_USAGE.

Originally posted by @cmp0xff in #1672 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions