mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
use common rst syntax in doc-strings
This commit is contained in:
@@ -189,11 +189,9 @@ def get_cost_items_for_product(product: ifcopenshell.entity_instance) -> list[if
|
||||
"""
|
||||
Returns a list of cost items related to the given product.
|
||||
|
||||
Args:
|
||||
product: An object of class IfcProduct representing a product.
|
||||
:param product: An object of class IfcProduct representing a product.
|
||||
|
||||
Returns:
|
||||
A list of IfcCostItem objects representing the cost items related to the product.
|
||||
:return: A list of IfcCostItem objects representing the cost items related to the product.
|
||||
"""
|
||||
cost_items = []
|
||||
for assignment in product.HasAssignments:
|
||||
|
||||
@@ -367,14 +367,12 @@ def get_tasks_for_product(
|
||||
"""
|
||||
Get all tasks assigned to or referenced by the given product.
|
||||
|
||||
Args:
|
||||
product: An object that is assigned tasks or references tasks.
|
||||
schedule: An optional string representing the schedule name to filter tasks by.
|
||||
:param product: An object that is assigned tasks or references tasks.
|
||||
:param schedule: An optional string representing the schedule name to filter tasks by.
|
||||
|
||||
Returns:
|
||||
A tuple of two lists:
|
||||
- The first list contains all tasks assigned to the product.
|
||||
- The second list contains all tasks referenced by the product that are part of the given schedule.
|
||||
:return: A tuple of two lists:
|
||||
- The first list contains all tasks assigned to the product.
|
||||
- The second list contains all tasks referenced by the product that are part of the given schedule.
|
||||
"""
|
||||
inputs = [
|
||||
assignement.RelatingProcess
|
||||
|
||||
Reference in New Issue
Block a user