mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +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:
@@ -50,3 +50,29 @@ from .unassign_actor import unassign_actor
|
||||
from .update_owner_history import update_owner_history
|
||||
|
||||
wrap_usecases(__path__, __name__)
|
||||
|
||||
__all__ = [
|
||||
"add_actor",
|
||||
"add_address",
|
||||
"add_application",
|
||||
"add_organisation",
|
||||
"add_person",
|
||||
"add_person_and_organisation",
|
||||
"add_role",
|
||||
"assign_actor",
|
||||
"create_owner_history",
|
||||
"edit_actor",
|
||||
"edit_address",
|
||||
"edit_organisation",
|
||||
"edit_person",
|
||||
"edit_role",
|
||||
"remove_actor",
|
||||
"remove_address",
|
||||
"remove_application",
|
||||
"remove_organisation",
|
||||
"remove_person",
|
||||
"remove_person_and_organisation",
|
||||
"remove_role",
|
||||
"unassign_actor",
|
||||
"update_owner_history",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user