yiju-checks:
error[truthiness-test-of-none-union]: Boolean test on `tuple[str, ...] | None` does not distinguish `None` from other falsy values
--> yiju/core …
yiju-checks:
error[truthiness-test-of-none-union]: Boolean test on `tuple[str, ...] | None` does not distinguish `None` from other falsy values
--> yiju/core/tokenizer.py:131:32
|
131 | parts = list(known) if known else characters[offset : offset + len(word)]
| ^^^^^ Both `None` and non-`None` values can be falsy
help: Use `is None` or `is not None` to check for presence of the value
help: Use `bool(...)` if testing truthiness is intentional
Found 1 diagnostic
|