-
Notifications
You must be signed in to change notification settings - Fork 49
refactor: static class attributes #4174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@prmukherj Have you verified that settings API docs are rendering correctly by running Nightly Dev Doc Build workflow using this branch ? |
I have run it: https://github.com/ansys/pyfluent/actions/runs/15754777339 Let's verify the results once it is generated. |
@@ -139,8 +150,12 @@ def _populate_rst_from_settings(rst_dir, cls, version): | |||
r.write(f'{"="*(len(cls_orig_name))}\n\n') | |||
deprecated = getattr(cls, "_deprecated_version", None) | |||
if deprecated: | |||
release_version = "20" + cls._deprecated_version.replace(".", "R") | |||
r.write(f".. deprecated:: Ansys {release_version}\n\n") | |||
if float(cls._deprecated_version) < 22.2: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here if the deprecated version is less that 22.2, we provide the least version supported by pyfluent, i.e. 2022R2, as the versions before that are not supported by our FluentVersion enum,
Refactor static class attributes access