aboutsummaryrefslogtreecommitdiff
path: root/unittests/pythontests.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2022-02-24 16:30:22 -0800
committerXavier Claessens <xclaesse@gmail.com>2023-06-01 15:32:18 -0400
commit1ed1c8e2b0fa639a4a5ee74a2984ff7b03526028 (patch)
tree25b261d28a30edb3c46c9c497f9990e571e97d2b /unittests/pythontests.py
parentcb0b6352b5b3fe548f2148999b4072eac76ff465 (diff)
downloadmeson-1ed1c8e2b0fa639a4a5ee74a2984ff7b03526028.zip
meson-1ed1c8e2b0fa639a4a5ee74a2984ff7b03526028.tar.gz
meson-1ed1c8e2b0fa639a4a5ee74a2984ff7b03526028.tar.bz2
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 'unittests/pythontests.py')
0 files changed, 0 insertions, 0 deletions