uranusjr commented on code in PR #26949:
URL: https://github.com/apache/airflow/pull/26949#discussion_r996777933


##########
airflow/providers/amazon/aws/hooks/emr.py:
##########
@@ -20,16 +20,25 @@
 import json
 import warnings
 from time import sleep
-from typing import Any, Callable
+from typing import TYPE_CHECKING, Any, Callable
 
 from botocore.exceptions import ClientError
 
 from airflow.compat.functools import cached_property
 from airflow.exceptions import AirflowException, AirflowNotFoundException
-from airflow.providers.amazon.aws.hooks.base_aws import AwsBaseHook
+from airflow.providers.amazon.aws.hooks.base_aws import AwsBaseHook, 
AwsGenericHook
+
+if TYPE_CHECKING:
+    from mypy_boto3_emr import EMRClient
+    from mypy_boto3_emr.literals import ClusterStateType
+    from mypy_boto3_emr.type_defs import (
+        ListClustersOutputTypeDef,
+        RunJobFlowInputRequestTypeDef,
+        RunJobFlowOutputTypeDef,
+    )
 
 
-class EmrHook(AwsBaseHook):
+class EmrHook(AwsGenericHook[EMRClient]):

Review Comment:
   ```suggestion
   class EmrHook(AwsGenericHook["EMRClient"]):
   ```
   
   Unfortunately Python is not _that_ smart



-- 
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]

Reply via email to