Skip to content

Commit

Permalink
Fix mypy errors in apache/drill/operators and /apache/pig/operators (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
subkanthi committed Dec 30, 2021
1 parent 0bf424f commit a1d457a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion airflow/providers/apache/drill/operators/drill.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(
self.sql = sql
self.drill_conn_id = drill_conn_id
self.parameters = parameters
self.hook = None
self.hook: Optional[DrillHook] = None

def execute(self, context: 'Context'):
self.log.info('Executing: %s on %s', self.sql, self.drill_conn_id)
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/apache/pig/operators/pig.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(
self.pig = pig
self.pig_cli_conn_id = pig_cli_conn_id
self.pig_opts = pig_opts
self.hook = None
self.hook: Optional[PigCliHook] = None

def prepare_template(self):
if self.pigparams_jinja_translate:
Expand Down

0 comments on commit a1d457a

Please sign in to comment.