potiuk commented on a change in pull request #6740: [AIRFLOW-6181] Add InProcessExecutor URL: https://github.com/apache/airflow/pull/6740#discussion_r354788194
########## File path: airflow/executors/executor_loader.py ########## @@ -51,7 +52,7 @@ def get_default_executor(cls) -> BaseExecutor: return cls._default_executor @staticmethod - def _get_executor(executor_name: str) -> BaseExecutor: + def _get_executor(executor_name: str) -> BaseExecutor: # pylint: disable=too-many-return-statements Review comment: Or simply executor = x in all branches and 'return executor' at the end if not empty ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services