Skip to content

[verbose-decimal-constructor (FURB157)] doesn't trigger on Decimal("1_000") #13807

@monosans

Description

@monosans
Decimal(1000)  # OK
Decimal(1_000)  # OK
Decimal("1000")  # Triggers FURB157
Decimal("1_000")  # Should trigger FURB157 and become Decimal(1_000), but it doesn't

ruff v0.7.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedContributions especially welcomepreviewRelated to preview mode features

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions