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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]