diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2024-08-29 09:47:39 -0700 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2025-02-05 17:45:38 +0200 |
| commit | 0e11b90d6f2f9c3e18cb8ff84b1622640666e826 (patch) | |
| tree | 56772aa8d0b622d6456eb5c58441063d6a6f4c36 /data | |
| parent | fe9f8de1ab52af0a6f4c3a1ce054ee3e2eb7a74c (diff) | |
| download | meson-0e11b90d6f2f9c3e18cb8ff84b1622640666e826.tar.gz | |
options: use dataclasses for UserOption
This reduces code, makes this clearer, and will be a nice step toward
the goal of getting everything typesafe.
For `UserIntegerOption` this makes a fairly nice, but substantial change
in that the old method used a tuple of `(min, value, max)` to pass to the
initializer, while all other types just passed `value`. The new
`UserIntegerOption` does the same, with keyword arguments for the min
and max values.
Diffstat (limited to 'data')
0 files changed, 0 insertions, 0 deletions
