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
pull/5700/head
Dylan Baker 6 years ago committed by Nirbheek Chauhan
parent 3b2126531a
commit 019f73dd7c
  1. 2
      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']

Loading…
Cancel
Save