backends/ninja: fix annotation of NinjaBuildElement.add_item

The `elems` annotation was invalid
pull/12393/merge
Dylan Baker 4 months ago committed by Eli Schwartz
parent 8d2a41cfdc
commit 065288eac5
  1. 2
      mesonbuild/backend/ninjabackend.py

@ -339,7 +339,7 @@ class NinjaBuildElement:
else: else:
self.orderdeps.add(dep) self.orderdeps.add(dep)
def add_item(self, name: str, elems: T.Union[str, T.List[str, CompilerArgs]]) -> None: def add_item(self, name: str, elems: T.Union[str, T.List[str], CompilerArgs]) -> None:
# Always convert from GCC-style argument naming to the naming used by the # Always convert from GCC-style argument naming to the naming used by the
# current compiler. Also filter system include paths, deduplicate, etc. # current compiler. Also filter system include paths, deduplicate, etc.
if isinstance(elems, CompilerArgs): if isinstance(elems, CompilerArgs):

Loading…
Cancel
Save