2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-10-03 15:52:51 +00:00

Fix incorrect type hints (#10417)

This commit is contained in:
Oliver
2025-09-28 16:24:49 +10:00
committed by GitHub
parent bcc386aecf
commit 3242a00fef

View File

@@ -474,7 +474,7 @@ class Build(
return self.tracked_line_items.count() > 0 return self.tracked_line_items.count() > 0
@property @property
def untracked_line_items(self) -> bool: def untracked_line_items(self) -> QuerySet:
"""Returns the "non trackable" BOM items for this BuildOrder.""" """Returns the "non trackable" BOM items for this BuildOrder."""
return self.build_lines.filter(bom_item__sub_part__trackable=False) return self.build_lines.filter(bom_item__sub_part__trackable=False)
@@ -531,7 +531,7 @@ class Build(
return outputs return outputs
@property @property
def complete_outputs(self) -> bool: def complete_outputs(self) -> QuerySet:
"""Return all the "completed" build outputs.""" """Return all the "completed" build outputs."""
outputs = self.get_build_outputs(complete=True) outputs = self.get_build_outputs(complete=True)