MannXo opened a new pull request, #70326:
URL: https://github.com/apache/airflow/pull/70326

   Move the `input_data is None` required-value check from `__init__` into 
`execute()`.
   
   `input_data` is a template field, so it is rendered after the constructor 
runs. Validating it in `__init__` checks the un-rendered value. Running the 
check in `execute()` validates the value the task actually uses.
   
   Small behavior change: constructing the operator with `input_data=None` no 
longer raises immediately; the `TypeError` is raised when the task runs, after 
templating.
   
   Part of the template-field constructor burn-down; removes the 
`WeaviateIngestOperator` entry from 
`scripts/ci/prek/validate_operators_init_exemptions.txt` in the same PR, as the 
hook requires.
   
   related: #70296
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 4.8)
   
   Generated-by: Claude Code (Opus 4.8) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to