Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement type casting and set field values in Issue class
This change introduces a new `_cast_and_set` static method in the `Issue` class to handle the type casting and setting of field values: 1. Adds a `_cast_and_set` static method that takes a field and a value, and casts the value to the appropriate data type based on the field's `dtype` attribute. 2. Updates the `editable_fields` method to use the new `_cast_and_set` method to set the field values, ensuring proper data type handling. 3. Handles cases where the value cannot be cast to the expected data type, printing an error message. This change improves the robustness and maintainability of the field value handling in the `Issue` class.
- Loading branch information