if goal:
checkA = checkAfunc(user, goal)
if not checkA:
if goal:
xyz, _ = checkB(user, goal)
else
xyz, _ = checkB(user, goal)
checkA = xyz or checkA
While refactoring the above code, it got committed without throwing any exception. pylint check is also not emitting any error While pycharm also uses pylint , it shows - Local variable 'xyz' might be referenced before assignment. What rule shall be further added in pylint config for emitting this exception before committing the code itself?