foldvari opened a new issue, #34133:
URL: https://github.com/apache/airflow/issues/34133
### Apache Airflow version
Other Airflow 2 version (please specify below)
### What happened
Before upgrading to v2.6.3 from v2.5.3 we relied on that a NamedTuple can be
a return value from a @task annotated task.
After upgrading to v.2.6.3 these tasks are failing with TypeError: Object of
type MyClass is not JSON serializable
### What you think should happen instead
New version should be backwards compatible and should continue supporting
NamedTuples on XCOM.
### How to reproduce
```python
@task()
def a():
class MyClass(NamedTuple):
a: str
b: int
value = MyClass('A', 42)
return value
```
### Operating System
Debian GNU/Linux 11 (bullseye)
### Versions of Apache Airflow Providers
```
apache-airflow-providers-amazon==7.3.0
apache-airflow-providers-celery==3.1.0
apache-airflow-providers-cncf-kubernetes==5.2.2
apache-airflow-providers-common-sql==1.3.4
apache-airflow-providers-docker==3.5.1
apache-airflow-providers-elasticsearch==4.4.0
apache-airflow-providers-ftp==3.3.1
apache-airflow-providers-google==8.11.0
apache-airflow-providers-grpc==3.1.0
apache-airflow-providers-hashicorp==3.3.0
apache-airflow-providers-http==2.0.3
apache-airflow-providers-imap==3.1.1
apache-airflow-providers-microsoft-azure==5.2.1
apache-airflow-providers-microsoft-winrm==2.0.2
apache-airflow-providers-mysql==4.0.2
apache-airflow-providers-odbc==3.2.1
apache-airflow-providers-postgres==5.4.0
apache-airflow-providers-redis==3.1.0
apache-airflow-providers-samba==2.0.0
apache-airflow-providers-sendgrid==3.1.0
apache-airflow-providers-sftp==2.4.1
apache-airflow-providers-slack==7.2.0
apache-airflow-providers-snowflake==4.0.4
apache-airflow-providers-sqlite==3.3.1
apache-airflow-providers-ssh==3.5.0
```
### 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]