Skip to content

Commit

Permalink
fix: warning and add an exception if using class alone (#3552)
Browse files Browse the repository at this point in the history
* fix: warning and add an exception if using class alone

* chore: adding changelog file 3552.fixed.md [dependabot-skip]

* ci: auto fixes from pre-commit.com hooks.

for more information, see https://pre-commit.ci

* feat: clarifying warning

---------

Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 18, 2024
1 parent d7e7981 commit 6677797
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions doc/changelog.d/3552.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix: warning and add an exception if using class alone
6 changes: 3 additions & 3 deletions src/ansys/mapdl/core/mapdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class MapdlBase(_MapdlExtended):
"""Base MAPDL class shared across all MAPDL subclasses.
.. warning:: This class should NOT be imported by itself.
You should always import a subclass of it
"""
You should always import a subclass of it like
:class:`MapdlGrpc <ansys.mapdl.core.mapdl_grpc.MapdlGrpc>`
pass
"""

0 comments on commit 6677797

Please sign in to comment.