mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +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:
@@ -30,3 +30,9 @@ from .create_grid_axis import create_grid_axis
|
||||
from .remove_grid_axis import remove_grid_axis
|
||||
|
||||
wrap_usecases(__path__, __name__)
|
||||
|
||||
__all__ = [
|
||||
"create_axis_curve",
|
||||
"create_grid_axis",
|
||||
"remove_grid_axis",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user