diff options
Diffstat (limited to 'mesonbuild/interpreter/primitives/range.py')
-rw-r--r-- | mesonbuild/interpreter/primitives/range.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/interpreter/primitives/range.py b/mesonbuild/interpreter/primitives/range.py index 9054278..a35470c 100644 --- a/mesonbuild/interpreter/primitives/range.py +++ b/mesonbuild/interpreter/primitives/range.py @@ -10,8 +10,11 @@ from ...interpreterbase import ( InvalidArguments, ) +if T.TYPE_CHECKING: + from ...interpreterbase import SubProject + class RangeHolder(MesonInterpreterObject, IterableObject): - def __init__(self, start: int, stop: int, step: int, *, subproject: str) -> None: + def __init__(self, start: int, stop: int, step: int, *, subproject: 'SubProject') -> None: super().__init__(subproject=subproject) self.range = range(start, stop, step) self.operators.update({ |