Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Refactor field value handling in Issue class
This change refactors the field value handling logic in the `Issue` class: 1. Removes the `_cast_and_set` static method, as the field value setting is now handled directly using `setattr`. 2. Simplifies the `editable_fields` method by directly setting the field values using `setattr` instead of calling `_cast_and_set`. 3. Removes the unnecessary try-except block for handling value casting, as the field types are now properly defined in the `attrs.py` module. 4. Updates the `_update_options_for_each_conditional` method to only add new fields to the `editable_fields` dictionary, avoiding unnecessary updates. This refactoring improves the readability and maintainability of the `Issue` class by simplifying the field value handling logic.
- Loading branch information