Skip to content

C419 autofix can remove comment #4094

@Skylion007

Description

@Skylion007

We did a large change of the PyTorch codebase with ruff in pytorch/pytorch#99890 by enabling C419 with autofixes. It mostly worked out of the box, but we did have to add back in one type comment for mypy that got deleted by the autofix: pytorch/pytorch@ad98f63

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions