Deprecate *args and **kwargs in BaseOperator#1285
Conversation
|
|
|
Coverage increased (+0.03%) to 67.235% when pulling 8d21aa62a84297c33d8dca06db42b96cddd1f95e on jlowin:remove_blanket_kwargs into 31168bc on airbnb:master. |
|
Can you add a description on what people need to do with their DAGs in UPDATING.md? |
|
Didn't know we had that file, that's great! Yes, I'll update it. |
8d21aa6 to
038660b
Compare
|
|
|
Coverage increased (+0.2%) to 67.235% when pulling 038660b6ef28e5393813f2d71c243a1d518a37a7 on jlowin:remove_blanket_kwargs into 0bae60f on airbnb:master. |
BaseOperator silently accepts any arguments. This deprecates the behavior with a warning that says it will be forbidden in Airflow 2.0. This PR also turns on DeprecationWarnings by default, which in turn revealed that inspect.getargspec is deprecated. Here it is replaced by `inspect.signature` (Python 3) or `funcsigs.signature` (Python 2). Lastly, this brought to attention that example_http_operator was passing an illegal argument. Add unit test
038660b to
5d959f6
Compare
|
|
BaseOperator silently accepts any arguments. This deprecates the
behavior with a warning that says it will be forbidden in Airflow 2.0.
This PR also turns on DeprecationWarnings by default, which in turn
revealed that inspect.getargspec is deprecated. Here it is replaced by
inspect.signature(Python 3) orfuncsigs.signature(Python 2).Lastly, this brought to attention that example_http_operator was
passing an illegal argument.