The code changes in validators.py refactor the dataset scope validation logic. The schemingdcat_dataset_scope function now uses a dictionary comprehension to generate the choices_dict instead of a conditional statement. This improves the readability and maintainability of the code.
The code changes in
validators.py
refactor the dataset scope validation logic. Theschemingdcat_dataset_scope
function now uses a dictionary comprehension to generate thechoices_dict
instead of a conditional statement. This improves the readability and maintainability of the code.