Skip to content

UP003 false-positive introduces bug #2632

@spaceone

Description

@spaceone
arg = 1   # any type, not string
type(arg)(' ') in arg

ruff --fix --select UP003 foo.py turns it into:

arg = 1   # any type, not string
str in arg

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionAsking for support or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions