coconut
coconut copied to clipboard
Simple, elegant, Pythonic functional programming.
Should support `pyright` like `mypy` is currently supported
We already mostly support [PEP 695](https://peps.python.org/pep-0695/), except for: * [tuple constraints](https://peps.python.org/pep-0695/#constrained-type-specification) * generating literal syntax on 3.12 * [lazy evaluation of `type` statements](https://docs.python.org/3.12/reference/executionmodel.html#lazy-evaluation)
Something like a `--silence-warnings` parameter that accepts a regex to match against the warning to determine whether to silence it or not.
It just prints out the base MultiError and doesn't include all the sub errors.
We'll probably do this if only if [PEP 653](https://peps.python.org/pep-0653/) is actually accepted.
It's much clearer when using Coconut builtins from vanilla Python.
See: https://github.com/jupyter-xeus/xeus-python
We need to use the actual variable name `sys` because `mypy` requires it, so our only real option here is to make `sys` an unredefinable built-in, like `_coconut` names, so...
Currently we have the possibility to create our own custom operators like so: ```python operator ~~ def left ~~ right = dostuff(right) - dostuff(left) ``` but we don't seem to...
Should compile ```python class A: def a + b: ... ``` to ```python class A: def __add__(a, b): ... ```