diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2022-02-24 16:30:22 -0800 |
|---|---|---|
| committer | Xavier Claessens <xclaesse@gmail.com> | 2023-06-01 15:32:18 -0400 |
| commit | 1ed1c8e2b0fa639a4a5ee74a2984ff7b03526028 (patch) | |
| tree | 25b261d28a30edb3c46c9c497f9990e571e97d2b /mesonbuild/modules | |
| parent | cb0b6352b5b3fe548f2148999b4072eac76ff465 (diff) | |
| download | meson-1ed1c8e2b0fa639a4a5ee74a2984ff7b03526028.tar.gz | |
mparser: add equality operators to nodes
This makes use of dataclasses, but without a dataclass generated
initializer. This means that we get nice `__repr__` and `__eq__` methods
without having to type them by hand.
Pylance understands `dataclass(init=False)`, but mypy doesn't.
https://github.com/microsoft/pyright/issues/1753
https://github.com/python/mypy/issues/10309
Diffstat (limited to 'mesonbuild/modules')
0 files changed, 0 insertions, 0 deletions
