diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2019-05-13 11:50:51 -0700 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2019-07-23 09:58:24 +0000 |
commit | 019f73dd7ca5d03d99ec32e2887bf20f32edc18a (patch) | |
tree | be223d05fb3fd038b6095e16c52605e47ab5c657 | |
parent | 3b2126531a732ddd54cab2404ac1cb8b44fb49f7 (diff) | |
download | meson-019f73dd7ca5d03d99ec32e2887bf20f32edc18a.zip meson-019f73dd7ca5d03d99ec32e2887bf20f32edc18a.tar.gz meson-019f73dd7ca5d03d99ec32e2887bf20f32edc18a.tar.bz2 |
coredata: Add a type for the options dict
This is used in a lot of places, having a single way to reference it is
convenient. It's placed under a typing.TYPE_CHECKING guard to mimimize
runtime impact
-rw-r--r-- | mesonbuild/coredata.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/coredata.py b/mesonbuild/coredata.py index 1a397c7..29cda90 100644 --- a/mesonbuild/coredata.py +++ b/mesonbuild/coredata.py @@ -35,6 +35,8 @@ import enum if typing.TYPE_CHECKING: from . import dependencies + OptionDictType = typing.Dict[str, 'UserOption[Any]'] + version = '0.51.999' backendlist = ['ninja', 'vs', 'vs2010', 'vs2015', 'vs2017', 'vs2019', 'xcode'] |