mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
specify exported api methods in __all__
It's py.types requirement, similar to 6e2edbf
Example issue without __all__:
import ifcopenshell
import ifcopenshell.api.project
# "create_file" is not exported from module "ifcopenshell.api.project"
ifcopenshell.api.project.create_file()
This commit is contained in:
@@ -46,3 +46,25 @@ from .remove_cost_value import remove_cost_value
|
||||
from .unassign_cost_item_quantity import unassign_cost_item_quantity
|
||||
|
||||
wrap_usecases(__path__, __name__)
|
||||
|
||||
__all__ = [
|
||||
"add_cost_item",
|
||||
"add_cost_item_quantity",
|
||||
"add_cost_schedule",
|
||||
"add_cost_value",
|
||||
"assign_cost_item_quantity",
|
||||
"assign_cost_value",
|
||||
"calculate_cost_item_resource_value",
|
||||
"copy_cost_item",
|
||||
"copy_cost_item_values",
|
||||
"edit_cost_item",
|
||||
"edit_cost_item_quantity",
|
||||
"edit_cost_schedule",
|
||||
"edit_cost_value",
|
||||
"edit_cost_value_formula",
|
||||
"remove_cost_item",
|
||||
"remove_cost_item_quantity",
|
||||
"remove_cost_schedule",
|
||||
"remove_cost_value",
|
||||
"unassign_cost_item_quantity",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user