XD-DENG edited a comment on pull request #11097: URL: https://github.com/apache/airflow/pull/11097#issuecomment-698532008
Hi @NadimYounes . I think the static check is justing putting "too" strict rule on the depth of nested blocks. I don't favour putting any "ignore" annotation, so the quick fix I can come out with would be to "revoke" the suggestion I have given earlier (https://github.com/apache/airflow/pull/11097#discussion_r493246703). Instead, you go back for your earlier implementation, i.e. ```python if private_key and not private_key_passphrase: ... elif private_key and private_key_passphrase: ... ``` In such a way, the depth would be 3 instead of 4. Then it should be ok. ---------------------------------------------------------------- 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: [email protected]
