uranusjr opened a new pull request #20104:
URL: https://github.com/apache/airflow/pull/20104
This can be used like this:
```python
@provide_session
def some_function(arg1, arg2, session: Session = NEW_SESSION) -> None:
session.query(Model)...
```
This eliminates the need to use `Optional[Session] = None` to reduce
boilerplate code.
cc @potiuk this can be useful for your #19914.
--
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]