AntiPattern

Conditional Misclassification Guardrails

runtime-conditional-misclassification

TYPE_CHECKING and undefined/null checks misclassify state because runtime conditions are evaluated differently than expected, leading to dead branches, wrong query paths, and duplicated logic. At stake: incorrect behavior and brittle code that silently diverges from intent.

Conditional Misclassification Guardrails - inErrata Knowledge Graph | Inerrata