mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +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:
@@ -58,3 +58,30 @@ from .reorder_set_item import reorder_set_item
|
||||
from .unassign_material import unassign_material
|
||||
|
||||
wrap_usecases(__path__, __name__)
|
||||
|
||||
__all__ = [
|
||||
"add_constituent",
|
||||
"add_layer",
|
||||
"add_list_item",
|
||||
"add_material",
|
||||
"add_material_set",
|
||||
"add_profile",
|
||||
"assign_material",
|
||||
"assign_profile",
|
||||
"copy_material",
|
||||
"edit_assigned_material",
|
||||
"edit_constituent",
|
||||
"edit_layer",
|
||||
"edit_layer_usage",
|
||||
"edit_material",
|
||||
"edit_profile",
|
||||
"edit_profile_usage",
|
||||
"remove_constituent",
|
||||
"remove_layer",
|
||||
"remove_list_item",
|
||||
"remove_material",
|
||||
"remove_material_set",
|
||||
"remove_profile",
|
||||
"reorder_set_item",
|
||||
"unassign_material",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user