The way we validate required positional arguments in our decorators is hard to understand. This attempts to make the flow a bit easier to follow (and easier to change).
Details
Details
Unit tests
Diff Detail
Diff Detail
- Repository
- R1 dagster
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
python_modules/dagster/dagster/core/decorator_utils.py | ||
---|---|---|
22 | lambda is funky but our error messages here arent uniform |
Comment Actions
some ideas inline - I think this can use a second pass. Its a little better but not a clear step up imo
python_modules/dagster/dagster/core/definitions/decorators/hook.py | ||
---|---|---|
48–49 | its odd how many of these call sites don't use the output on this function also agree the lambda for error message is an unfortunate indirection. Would make it hard to improve the error message with more granular context what if we had a couple more granular functions instead? get_function_params split part probably doesnt need a func |
python_modules/dagster/dagster/core/definitions/decorators/solid.py | ||
---|---|---|
372 | bc is Noneable if a missing positional is returned |