[code-quality] Checking type determination with astroid for comparison operators