mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 21:53:40 +00:00
typing
This commit is contained in:
@@ -289,7 +289,7 @@ def calculate_cost_item_resource_value(ifc: tool.Ifc, cost_item: ifcopenshell.en
|
||||
ifc.run("cost.calculate_cost_item_resource_value", cost_item=cost_item)
|
||||
|
||||
|
||||
def export_cost_schedules(cost: tool.Cost, filepath, format, cost_schedule=None):
|
||||
def export_cost_schedules(cost: tool.Cost, filepath: str, format: str, cost_schedule=None):
|
||||
cost.play_sound()
|
||||
return cost.export_cost_schedules(filepath, format, cost_schedule)
|
||||
|
||||
|
||||
@@ -529,7 +529,7 @@ class Cost(blenderbim.core.tool.Cost):
|
||||
props.is_cost_update_enabled = True
|
||||
|
||||
@classmethod
|
||||
def export_cost_schedules(cls, filepath, format=None, cost_schedule=None):
|
||||
def export_cost_schedules(cls, filepath: str, format: str, cost_schedule=None):
|
||||
import subprocess
|
||||
import os
|
||||
import sys
|
||||
@@ -642,7 +642,7 @@ class Cost(blenderbim.core.tool.Cost):
|
||||
return bool(cost_items)
|
||||
|
||||
@classmethod
|
||||
def load_product_cost_items(cls, product):
|
||||
def load_product_cost_items(cls, product: ifcopenshell.entity_instance) -> None:
|
||||
props = bpy.context.scene.BIMCostProperties
|
||||
props.is_cost_update_enabled = False
|
||||
props.product_cost_items.clear()
|
||||
|
||||
Reference in New Issue
Block a user