raphaelauv opened a new issue, #39639:
URL: https://github.com/apache/airflow/issues/39639
### Apache Airflow version
2.9.1
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
```python
PythonOperator(
task_id="test_2",
python_callable=a,
pool="pool_1",
pool_slots="a",
)
```
airflow fail with

but
with
```
PythonOperator.partial(
task_id="test",
python_callable=a,
pool="pool_1",
pool_slots="a",
).expand(show_return_value_in_logs=[True])
```
airflow do not fail to parse the file and fail at trigger of the pipeline
### What you think should happen instead?
airflow should detect incorrect args of partial
### How to reproduce
```
from airflow.operators.python import PythonOperator
from pendulum import today
from airflow import DAG
with DAG(
dag_id="test_partial",
schedule_interval=None,
start_date=today("UTC").add(days=-1)):
def a():
return
PythonOperator.partial(
task_id="test",
python_callable=a,
pool="pool_1",
pool_slots="a",
).expand(show_return_value_in_logs=[True])
```
### Operating System
----
### Versions of Apache Airflow Providers
_No response_
### Deployment
Official Apache Airflow Helm Chart
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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]