Skip to content

False positive for UP046 #20929

@NeilGirdhar

Description

@NeilGirdhar

Summary

UP046 triggers on Python 3.12 even when a default is given. On Python 3.12, you can't specify a default value for a PEP695 type parameter. Therefore, the rule should not trigger.

Version

0.14.1

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedContributions especially welcome

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions