diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-01-27 11:06:39 -0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2021-02-06 13:11:25 -0500 |
commit | 2650977c38b3f9b7de6e1f1984151197f0cffc4a (patch) | |
tree | 776115ab8ceedb4f826723accf911d653785b6d5 /mesonbuild/backend/backends.py | |
parent | 978eeddab8ab126a340b2423ddf4146d0ca9ccf8 (diff) | |
download | meson-2650977c38b3f9b7de6e1f1984151197f0cffc4a.zip meson-2650977c38b3f9b7de6e1f1984151197f0cffc4a.tar.gz meson-2650977c38b3f9b7de6e1f1984151197f0cffc4a.tar.bz2 |
interpreterbase: Add support for optional arguments to typed_pos_args
This allows representing functions like assert(), which take optional
positional arguments, which are not variadic. More importnatly you can
represent a function like (* means optional, but possitional):
```txt
func(str, *int, *str)
```
typed_pos_args will check that all of your types are correct, and if not
provide None, which allow simplifying a number of implementation details
Diffstat (limited to 'mesonbuild/backend/backends.py')
0 files changed, 0 insertions, 0 deletions