aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonlib/universal.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-11-04 10:53:17 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-11-22 11:28:43 -0800
commitd05a0fbf335b23814ede488c668f43c97fd4f06c (patch)
tree778d090a90d79babd42bacc5a1d70a3fc9f67d4a /mesonbuild/mesonlib/universal.py
parent3295621706d47ca6f4731695e9c9acc0ddcc572b (diff)
downloadmeson-d05a0fbf335b23814ede488c668f43c97fd4f06c.zip
meson-d05a0fbf335b23814ede488c668f43c97fd4f06c.tar.gz
meson-d05a0fbf335b23814ede488c668f43c97fd4f06c.tar.bz2
interpreter: use typed_* args for the summary function
This also includes a few type annotation cleans for the Summary object. Getting the positional arguments exactly right is impossible, as this is really a function with two different signatures: ``` summary(value: dictionary): void summary(key: string, value: any): void ``` We can get close enough in the typed_pos_args by enforcing that there are two parameters, one required and one optional, and that the first must be either a dictionary or a string.
Diffstat (limited to 'mesonbuild/mesonlib/universal.py')
0 files changed, 0 insertions, 0 deletions