Files
ruff/crates/ty_python_semantic/resources/lint_docs/unresolved-reference.md

239 B

What it does

Checks for references to names that are not defined.

Why is this bad?

Using an undefined variable will raise a NameError at runtime.

Example

# NameError: name 'x' is not defined
print(x)  # error