diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index 08f2b9df3..283493b88 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -170,9 +170,9 @@ class NinjaCommandArg: def list(l, q): return [NinjaCommandArg(i, q) for i in l] +@dataclass class NinjaComment: - def __init__(self, comment): - self.comment = comment + comment: str def write(self, outfile): for l in self.comment.split('\n'):