catala/compiler
Louis Gesbert 9fa5f91e3a Python printer: add some parens to be safe
I can't find where the line cut triggering the error at
https://github.com/CatalaLang/catala/actions/runs/10304111306/job/28522272547?pr=666
came from:
```
/home/ocaml/french-law/_python_venv/lib/python3.12/site-packages/french_law/Aides_logement.py:27785:
error: invalid syntax  [syntax]
```

the file at this point contains:
```
    def traitement_aide_finale_montee_en_charge_saint_pierre_miquelon1(
        aide_finale4:Money):
→       traitement_aide_finale_montee_en_charge_saint_pierre_miquelon4 =
            handle_exceptions(
                [],
                []
            )
```

This workaround adds parens after `=`, which ensures the syntax will be correct.
2024-08-28 18:12:33 +02:00
..
catala_utils Implement safe renaming of idents for backend printing 2024-08-28 17:18:26 +02:00
dcalc Implement safe renaming of idents for backend printing 2024-08-28 17:18:26 +02:00
desugared Refactor suggestions 2024-06-20 15:59:54 +02:00
lcalc Renaming: move to its own module 2024-08-28 18:12:28 +02:00
literate Literate output: adjust catala-metadata margins 2024-06-26 12:09:15 +02:00
plugins Renaming: move to its own module 2024-08-28 18:12:28 +02:00
scalc Python printer: add some parens to be safe 2024-08-28 18:12:33 +02:00
scopelang Scopelang: add list of definitions's positions to scope var def 2024-07-17 18:03:23 +02:00
shared_ast Translation to scalc: fix renaming in blocks 2024-08-28 18:12:32 +02:00
surface Fix: return module items in file order 2024-08-28 17:18:26 +02:00
verification Implement safe renaming of idents for backend printing 2024-08-28 17:18:26 +02:00
catala_web_interpreter.ml Rewriting message calls to use the new intf 2024-04-10 19:26:23 +02:00
catala.ml replace let _ by let () or add type annotation 2023-09-09 22:02:39 +02:00
driver.ml Renaming: move to its own module 2024-08-28 18:12:28 +02:00
driver.mli Renaming: move to its own module 2024-08-28 18:12:28 +02:00
dune Update opam file according to opam-repository reviews 2024-05-06 21:39:58 +02:00
index.mld More doc 2023-06-18 16:08:16 +02:00
plugin.ml Rewriting message calls to use the new intf 2024-04-10 19:26:23 +02:00
plugin.mli Move global options of Cli to their own module 2024-03-19 15:18:35 +01:00
tests.ml Generalise the definition of lists of nested binders 2024-02-09 18:33:41 +01:00