"TypeError: unsupported operand type(s) for +: 'int' and 'NoSelection'" as soon as the custom resource profile was picked. Textual 8 turned Select.BLANK into a deprecated alias worth False, the sentinel having become Select.NULL. The guard compared against False and filtered nothing; NoSelection, lacking __bool__ and thus truthy, sailed through "or default" into the plan totals. The sentinel is now resolved at runtime, and both summed fields are coerced to a positive int inside the pure function -- where the invariant belongs, whatever Textual version is installed. --- FR --- « TypeError: unsupported operand type(s) for +: 'int' and 'NoSelection' » dès qu'on choisissait le profil personnalisé. Textual 8 a ramené Select.BLANK à un alias déprécié valant False, le sentinelle étant devenu Select.NULL. La garde comparait donc à False et ne filtrait plus rien ; NoSelection, dépourvu de __bool__ et tenu pour vrai, traversait « ou valeur par défaut » jusqu'aux sommes du plan. Le sentinelle est résolu à l'exécution, et les deux champs additionnés sont ramenés à un entier positif dans la fonction pure — c'est là que l'invariant appartient, quelle que soit la version de Textual. Assisted-by: Claude Opus 5 |
||
|---|---|---|
| .. | ||
| database_manager.py | ||
| kdbx_manager.py | ||
| logo_ascii.txt | ||
| migration_form.py | ||
| migration_stats.py | ||
| qemu_deploy_form.py | ||
| qemu_install_monitor.py | ||
| README.base.md | ||
| README.fr.md | ||
| README.md | ||
| source_todo.sh | ||
| textual_setup.py | ||
| todo.json | ||
| todo.py | ||
| todo_example.json | ||
| todo_file_browser.py | ||
| todo_i18n.py | ||
| todo_prefs.py | ||
| todo_telemetry.py | ||
| todo_upgrade.py | ||
| version_manager.py | ||
TODO is an assistant robot to use ERPLibre
Execute it with ./script/todo/todo.py or make todo.
For a new project, copy todo_example.json to private/todo/todo_override.json | private/todo/todo_override_private.json and edit it.
The mail/ package is the mail client reachable from Assistant > Mail:
several IMAP/SMTP accounts, a local cache, and a Textual TUI. See
../../doc/EMAIL.md.