aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreterbase
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2021-07-21 12:26:20 -0400
committerXavier Claessens <xavier.claessens@collabora.com>2021-07-21 13:33:06 -0400
commit0183954ea1219b2f86c8c7e15431a0908a8aa776 (patch)
tree3e400584525a487e1081e646f0c486df044ba210 /mesonbuild/interpreterbase
parent9afd589c8b77d1e9d279813a71ec1451476a0be8 (diff)
downloadmeson-0183954ea1219b2f86c8c7e15431a0908a8aa776.zip
meson-0183954ea1219b2f86c8c7e15431a0908a8aa776.tar.gz
meson-0183954ea1219b2f86c8c7e15431a0908a8aa776.tar.bz2
Fix meson.version().version_compare() regression in subproject
Diffstat (limited to 'mesonbuild/interpreterbase')
-rw-r--r--mesonbuild/interpreterbase/baseobjects.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreterbase/baseobjects.py b/mesonbuild/interpreterbase/baseobjects.py
index e65e4cb..8b1293c 100644
--- a/mesonbuild/interpreterbase/baseobjects.py
+++ b/mesonbuild/interpreterbase/baseobjects.py
@@ -82,7 +82,7 @@ class ObjectHolder(InterpreterObject, T.Generic[InterpreterObjectTypeVar]):
return f'<[{type(self).__name__}] holds [{type(self.held_object).__name__}]: {self.held_object!r}>'
class RangeHolder(MesonInterpreterObject):
- def __init__(self, start: int, stop: int, step: int, *, subproject: T.Optional[str] = None) -> None:
+ def __init__(self, start: int, stop: int, step: int, *, subproject: str) -> None:
super().__init__(subproject=subproject)
self.range = range(start, stop, step)