Skip to content

UP041 false-positive in the case of target=py310 #8565

@alex-700

Description

@alex-700

Hi!

UP041 (which is introduced in #8476) suggests to replace asyncio.TimeoutError with TimeoutError even when target-version is set to py310. And it offers the "safe" fix. But in the case of 3.10 this fix is "unsafe" (see. asyncio.TimeoutError in py310 docs)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions