Skip to content

I want ruff to fix F811 error. #3477

@yuji38kwmt

Description

@yuji38kwmt

Environments

$ uname -a
Linux example 5.15.0-60-generic #66-Ubuntu SMP Fri Jan 20 14:29:49 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
$ python --version
Python 3.11.2
$ ruff --version
ruff 0.0.254

What's happened?

I want to fix the following code.

import pandas
import pandas
df = pandas.Series(["a", "b", "c"])

But ruff did not fix line 1.

$ ruff sample.py  --fix --isolated
sample.py:2:8: F811 Redefinition of unused `pandas` from line 1
Found 1 error.

What do I expect?

I expect that ruff fix F811 error.

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