diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-08-29 19:40:10 +0200 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-09-01 19:17:01 +0200 |
commit | 43302d3296baff6aeaf8e03f5d701b0402e37a6c (patch) | |
tree | 0dffb59760fc793e92e9c505090c4b7c550de5a1 /mesonbuild/interpreterbase/baseobjects.py | |
parent | 86eda3c812e8b919dee485c0b6333671652ee30c (diff) | |
download | meson-43302d3296baff6aeaf8e03f5d701b0402e37a6c.zip meson-43302d3296baff6aeaf8e03f5d701b0402e37a6c.tar.gz meson-43302d3296baff6aeaf8e03f5d701b0402e37a6c.tar.bz2 |
interpreter: Introduce BooleanHolder for the bool primitive
Diffstat (limited to 'mesonbuild/interpreterbase/baseobjects.py')
-rw-r--r-- | mesonbuild/interpreterbase/baseobjects.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/interpreterbase/baseobjects.py b/mesonbuild/interpreterbase/baseobjects.py index 4b538fb..80cf0b5 100644 --- a/mesonbuild/interpreterbase/baseobjects.py +++ b/mesonbuild/interpreterbase/baseobjects.py @@ -129,8 +129,8 @@ class MesonInterpreterObject(InterpreterObject): class MutableInterpreterObject: ''' Dummy class to mark the object type as mutable ''' -HoldableTypes = (HoldableObject, int) -TYPE_HoldableTypes = T.Union[HoldableObject, int] +HoldableTypes = (HoldableObject, int, bool) +TYPE_HoldableTypes = T.Union[HoldableObject, int, bool] InterpreterObjectTypeVar = T.TypeVar('InterpreterObjectTypeVar', bound=TYPE_HoldableTypes) class ObjectHolder(InterpreterObject, T.Generic[InterpreterObjectTypeVar]): |