Back to Ruff

Escape Character In Forward Annotation

crates/ty_python_semantic/resources/lint_docs/escape-character-in-forward-annotation.md

0.15.18257 B
Original Source

What it does

Checks for forward annotations that contain escape characters.

Why is this bad?

Static analysis tools like ty can't analyze type annotations that contain escape characters.

Example

python
def foo() -> "intt\b": ...  # error