You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "goransh-buh (via GitHub)" <gi...@apache.org> on 2026/07/11 05:34:43 UTC
[I] Add type hints to public API functions [airflow]
goransh-buh opened a new issue, #69744:
URL: https://github.com/apache/airflow/issues/69744
## Feature Request
### Summary
Adding type hints to public API functions would significantly improve developer experience and enable better tooling support.
### Motivation
- IDEs can provide better autocomplete and inline documentation
- Static type checkers like `mypy` can catch bugs before runtime
- New contributors can understand the expected inputs/outputs faster
- Type hints serve as machine-checked documentation
### Proposed Change
Add type annotations to all public functions:
```python
# Before:
def process(data, config=None):
...
# After:
from typing import Optional, Dict, Any
def process(data: Dict[str, Any], config: Optional[Dict] = None) -> bool:
...
```
### Additional Context
This is a non-breaking change and can be done incrementally, starting with the most-used public functions.
--
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: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Add type hints to public API functions [airflow]
Posted by "shahar1 (via GitHub)" <gi...@apache.org>.
shahar1 closed issue #69744: Add type hints to public API functions
URL: https://github.com/apache/airflow/issues/69744
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org