mirror of
https://github.com/astral-sh/ruff.git
synced 2026-11-22 06:36:49 +08:00
403 B
403 B
What it does
Checks for assignments where the type of the value is not assignable to the type of the assignee.
Why is this bad?
Such assignments break the rules of the type system and weaken a type checker's ability to accurately reason about your code.
Examples
a: int = "" # error