You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/08/03 21:11:45 UTC
[GitHub] [airflow] kaxil commented on a change in pull request #10025: Typing coverage of amazon/aws/athena
kaxil commented on a change in pull request #10025:
URL: https://github.com/apache/airflow/pull/10025#discussion_r464664463
##########
File path: airflow/providers/amazon/aws/operators/athena.py
##########
@@ -72,19 +82,17 @@ def __init__( # pylint: disable=too-many-arguments
self.result_configuration = result_configuration or {}
self.sleep_time = sleep_time
self.max_tries = max_tries
- self.query_execution_id = None
- self.hook = None
+ self.query_execution_id = None # type: Optional[str]
- def get_hook(self):
+ @cached_property
Review comment:
:) -- Glad that you found it useful. Tbh I learned it just before I became an Airflow committer -- someone had suggested me in my PR 2-3 years back :)
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org