diff options
-rw-r--r-- | mesonbuild/backend/xcodebackend.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/mesonbuild/backend/xcodebackend.py b/mesonbuild/backend/xcodebackend.py index 958465f..9c88eec 100644 --- a/mesonbuild/backend/xcodebackend.py +++ b/mesonbuild/backend/xcodebackend.py @@ -138,12 +138,9 @@ class PbxDict: def has_item(self, key): return key in self.keys - def add_comment(self, comment: T.Union[str, PbxComment]) -> None: - if isinstance(comment, str): - self.items.append(PbxComment(str)) - else: - assert isinstance(comment, PbxComment) - self.items.append(comment) + def add_comment(self, comment: PbxComment) -> None: + assert isinstance(comment, PbxComment) + self.items.append(comment) def write(self, ofile: T.TextIO, indent_level: int) -> None: ofile.write('{\n') |