Taragolis commented on code in PR #39093: URL: https://github.com/apache/airflow/pull/39093#discussion_r1571330656
########## 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: ```suggestion from __future__ import annotations __all__ = ["AwsBatchExecutor"] from airflow.providers.amazon.aws.executors.batch.batch_executor import AwsBatchExecutor ``` `__all__` will make pre-commit and IDEs happy without hacks -- 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]
