uranusjr commented on issue #19241:
URL: https://github.com/apache/airflow/issues/19241#issuecomment-952587483
I think we need to explicitly cast inputs with `str()` in
`airflow/macros/__init__.py`. For example:
```python
def ds_add(ds, days):
ds = datetime.strptime(str(ds), '%Y-%m-%d') # Note the extra str() call.
...
```
Fancy a pull request fixing this? Some tests to make sure this doesn't
regress would probably be needed.
--
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]