o-nikolas commented on code in PR #39093:
URL: https://github.com/apache/airflow/pull/39093#discussion_r1571359065


##########
airflow/providers/amazon/aws/executors/batch/__init__.py:
##########
@@ -14,3 +14,12 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
+from __future__ import annotations  # Added by precommit hooks
+
+# from airflow.providers.amazon.aws.executors.batch.batch_executor import 
AwsBatchExecutor
+from airflow.providers.amazon.aws.executors.batch import batch_executor
+
+# precommit hooks (rust as of the time of commit) throws F401 - "Module 
imported but unused"
+# One of the solutions it suggests is using a "redundant alias". This is used 
below instead of doing a #no-qa
+# type ignore of the issue.
+AwsBatchExecutor = batch_executor.AwsBatchExecutor

Review Comment:
   To me using `__all__` is just as much of a hack, since we wouldn't specify 
that anyway. I'm not sure one is better than the other.



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