-
Notifications
You must be signed in to change notification settings - Fork 52
chore: Extract allowed values #4342
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
@hpohekar Please can we have description text: images won't play well in the logs. |
@seanpearsonuk Done. Thank you. |
@hpohekar, for these things we can add a small test in test_codegen? |
@prmukherj Yes, we can. Will add one. |
We need to wait for some more time as Fluent side changes are not available in the latest Fluent image. (Tests are failing due to this). |
This pull request focuses on improving maintainability by extracting and explicitly defining allowed values for settings classes. The main change ensures that allowed values are clearly listed and type-annotated, which will help with code clarity and future maintenance.
Settings class allowed values extraction:
_allowed_values
attribute to settings classes in both implementation and stub files, making allowed values explicit and type-annotated (src/ansys/fluent/core/codegen/settingsgen.py
).doc/changelog.d/4342.maintenance.md
).