From 019f73dd7ca5d03d99ec32e2887bf20f32edc18a Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 13 May 2019 11:50:51 -0700 Subject: [PATCH] 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 --- mesonbuild/coredata.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mesonbuild/coredata.py b/mesonbuild/coredata.py index 1a397c7ae..29cda90a3 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']