def func(): value = "not-none" if value is None: print("None") # pylint: disable=unused-argument print(value)