aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/backends.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-01-27 11:06:39 -0800
committerXavier Claessens <xclaesse@gmail.com>2021-02-06 13:11:25 -0500
commit2650977c38b3f9b7de6e1f1984151197f0cffc4a (patch)
tree776115ab8ceedb4f826723accf911d653785b6d5 /mesonbuild/backend/backends.py
parent978eeddab8ab126a340b2423ddf4146d0ca9ccf8 (diff)
downloadmeson-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