fix: ValueTracker.evaluate() should not skip falsy values like 0

This commit is contained in:
KooshaPari 2026-09-12 23:12:04 -07:00
commit 84a2fa76b3
2 changed files with 25 additions and 1 deletions

View file

@ -490,7 +490,7 @@ class ValueTracker:
return "text"
def evaluate(self, value: object) -> None:
if not value or not self.couldbe:
if value is None or not self.couldbe:
return
not_these: list[str] = []
for name, test in self.couldbe.items():