From 6fc2fc45fca72aede75937f4016b6d857fb1f0d6 Mon Sep 17 00:00:00 2001 From: German <28149841+germa89@users.noreply.github.com> Date: Mon, 21 Apr 2025 17:34:36 +0200 Subject: [PATCH 1/2] fix: specify type for click options in convert.py --- src/ansys/mapdl/core/cli/convert.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ansys/mapdl/core/cli/convert.py b/src/ansys/mapdl/core/cli/convert.py index fca31ce963c..5897323421f 100644 --- a/src/ansys/mapdl/core/cli/convert.py +++ b/src/ansys/mapdl/core/cli/convert.py @@ -84,6 +84,7 @@ "--loglevel", "-ll", default="WARNING", + type=str, help="Logging level of the ansys object within the script.", ) @click.option( @@ -153,6 +154,7 @@ "--header", "-h", default=True, + type=bool, help="If ``True``, the default header is written in the first line of the output. If a string is provided, this string will be used as header.", ) @click.option( @@ -184,6 +186,7 @@ @click.option( "--clear_at_start", default=False, + type=bool, help="""Add a `mapdl.clear()` after the Mapdl object initialization. Defaults to `False`.""", ) @@ -191,6 +194,7 @@ "--check_parameter_names", "--cpn", default=False, + type=bool, help="""Set MAPDL object to avoid parameter name checks (do not raise leading underscored parameter exceptions). Defaults to `False`.""", ) def convert( From 201ee2fe4efcb31f3f51490eb20bdab577016ae0 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Mon, 21 Apr 2025 15:36:10 +0000 Subject: [PATCH 2/2] chore: adding changelog file 3854.fixed.md [dependabot-skip] --- doc/changelog.d/3854.fixed.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/3854.fixed.md diff --git a/doc/changelog.d/3854.fixed.md b/doc/changelog.d/3854.fixed.md new file mode 100644 index 00000000000..108aed0966d --- /dev/null +++ b/doc/changelog.d/3854.fixed.md @@ -0,0 +1 @@ +fix: specify type for click options in convert.py \ No newline at end of file