Skip to content

UP035 --fix not working for quoted types #3508

@torarvid

Description

@torarvid

Hello hello 👋🏻

When running ruff --fix test.py (Ruff v0.0.255) for the following test file:

from typing import List

class A:
    myList: List[str]
    quotedList: "List[str]"

it will fix the first (non-quoted) variant, but still only report the second (quoted) variant. Unsure if this is a bug or expected behavior, but I thought I would report it anyways 🙂

Keep up the awesome work 🎉

Metadata

Metadata

Assignees

Labels

fixesRelated to suggested fixes for violations

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions