diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2023-05-02 14:33:38 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2023-06-01 15:32:18 -0400 |
commit | 7ac6afe265510cee133110f2d6d6ed111ccf0f1e (patch) | |
tree | e30d8058817010c49e6145ee0a6049babc092fad /unittests/pythontests.py | |
parent | 1ed1c8e2b0fa639a4a5ee74a2984ff7b03526028 (diff) | |
download | meson-7ac6afe265510cee133110f2d6d6ed111ccf0f1e.zip meson-7ac6afe265510cee133110f2d6d6ed111ccf0f1e.tar.gz meson-7ac6afe265510cee133110f2d6d6ed111ccf0f1e.tar.bz2 |
mparser: Further cleanup node definitions
- Include BaseNode position in hash methods, integer is the most
straightforward way of differentiating nodes.
- Exclude non hashable fields from hash method.
- Avoid using default values in BaseNode that way subclasses can have
fields wihtout default value without repeating init=False.
- Nodes that does not add fields does not need `@dataclass`.
- Make all node types hashable because they can be used for feature_key
in FeatureCheckBase.use().
- Remove unused type annotations
Diffstat (limited to 'unittests/pythontests.py')
0 files changed, 0 insertions, 0 deletions