Skip to content

Fix @no_type_check regression involving unknown decorators #141

@sharkdp

Description

@sharkdp

astral-sh/ruff#17017 introduced a regression in our understanding of @no_type_check, leading to two open TODOs in the tests here:

https://github.com/astral-sh/ruff/blob/ae2cf91a360e927f5da307d0290be1a6229ced9a/crates/red_knot_python_semantic/resources/mdtest/suppressions/no_type_check.md?plain=1#L41-L72

Addressing this might involve introducing a new function (salsa query?) that explicitly checks for the existence of a @no_type_check decorator in the definition of the function that is currently being type checked.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtyping semanticstyping-module features, spec compliance, etc

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions