GitHub user potiuk added a comment to the discussion:
AirflowNotFoundException(f"The conn_id `{conn_id}` isn't defined")
> tbh airflow should probably have a check within the PythonOperator to expect
> a function, not an executed function.
It's already defined as expected type - and you can have liniting/MyPy to
verify it:
```
def __init__(
self,
*,
python_callable: Callable,
```
It's pretty rare to do a runtime check of expected type in Python. I am not
sure if this is a good idea to make a specific check here, if there are ways to
check it via static checks at linting time.
GitHub link:
https://github.com/apache/airflow/discussions/20813#discussioncomment-12210967
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]