Currently, when someone is using a dataset for the first time, they might not know all the Options required in their config in order to call that dataset.
In order to help users, we should add a describe method where the user can see what options are required.
@dataset
def add(x: int = Option('X'), y: int = Option('Y'):
return x + y
add.describe() = {'X', 'Y'}
The difficulty is that required options can change depending on other values in the options dictionary due to overloads. We would need to think through how to deal with overloads in this scenario.
Currently, when someone is using a dataset for the first time, they might not know all the Options required in their config in order to call that dataset.
In order to help users, we should add a
describe
method where the user can see what options are required.The difficulty is that required options can change depending on other values in the options dictionary due to overloads. We would need to think through how to deal with overloads in this scenario.