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
This commit is contained in:
Dylan Baker 2019-05-13 11:50:51 -07:00 committed by Nirbheek Chauhan
parent 3b2126531a
commit 019f73dd7c
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,8 @@ import enum
if typing.TYPE_CHECKING: if typing.TYPE_CHECKING:
from . import dependencies from . import dependencies
OptionDictType = typing.Dict[str, 'UserOption[Any]']
version = '0.51.999' version = '0.51.999'
backendlist = ['ninja', 'vs', 'vs2010', 'vs2015', 'vs2017', 'vs2019', 'xcode'] backendlist = ['ninja', 'vs', 'vs2010', 'vs2015', 'vs2017', 'vs2019', 'xcode']