sonarlint

How to reduce Cognitive Complexity in this Python method

How to reduce Cognitive Complexity in this Python method Question: I am faced with a challenge. I have an Python method implemented and the SonarLint plugin of my PyCharm warns me with the message: "Refactor this function to reduce its Cognitive Complexity from 19 to the 15 allowed." but I can’t see how to reduce …

Total answers: 4