Skip to content

Commit 9f1cbaa

Browse files
dipinknairpyansys-ci-botklmcadams
authored
fix: add __all__ definitions (#1579)
Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Co-authored-by: Kerry McAdams <58492561+klmcadams@users.noreply.github.com>
1 parent 63dff4e commit 9f1cbaa

File tree

4 files changed

+33
-1
lines changed

4 files changed

+33
-1
lines changed

doc/changelog.d/1579.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add \`__all__\` definitions

src/ansys/mechanical/core/__init__.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,22 @@
7777

7878
BUILDING_GALLERY = False
7979
"""Whether or not to build gallery examples."""
80+
81+
__all__ = [
82+
"__version__",
83+
"App",
84+
"BUILDING_GALLERY",
85+
"EXAMPLES_PATH",
86+
"HAS_EMBEDDING",
87+
"LOCAL_PORTS",
88+
"LOG",
89+
"LocalMechanicalPool",
90+
"Mechanical",
91+
"USER_DATA_PATH",
92+
"change_default_mechanical_path",
93+
"close_all_local_instances",
94+
"connect_to_mechanical",
95+
"get_mechanical_path",
96+
"global_variables",
97+
"launch_mechanical",
98+
]

src/ansys/mechanical/core/embedding/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,10 @@
2626
from .app import App
2727
from .app_libraries import add_mechanical_python_libraries
2828
from .imports import global_variables
29+
30+
__all__ = [
31+
"AddinConfiguration",
32+
"App",
33+
"add_mechanical_python_libraries",
34+
"global_variables",
35+
]

src/ansys/mechanical/core/examples/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,9 @@
2222

2323
"""Initialize the package level imports."""
2424

25-
from .downloads import delete_downloads, download_file # noqa: F401
25+
from .downloads import delete_downloads, download_file
26+
27+
__all__ = [
28+
"delete_downloads",
29+
"download_file",
30+
]

0 commit comments

Comments
 (0)