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:
@@ -39,3 +39,18 @@ from .unassign_port import unassign_port
|
||||
from .unassign_system import unassign_system
|
||||
|
||||
wrap_usecases(__path__, __name__)
|
||||
|
||||
__all__ = [
|
||||
"add_port",
|
||||
"add_system",
|
||||
"assign_flow_control",
|
||||
"assign_port",
|
||||
"assign_system",
|
||||
"connect_port",
|
||||
"disconnect_port",
|
||||
"edit_system",
|
||||
"remove_system",
|
||||
"unassign_flow_control",
|
||||
"unassign_port",
|
||||
"unassign_system",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user