Cognitive Complexity Wrong Behavior On Python Code Vs Code Sonar

Cognitive Complexity Wrong Behavior On Python Code Vs Code Sonar