void () { doTestByText(""" def func11(value): if value is not None and value != 1: pass def func12(value): if None is not value and value != 1: pass def func21(value): if value is None and value != 1: pass def func22(value): if None is value and value != 1: pass func11(None) func12(None) func21(None) func22(None) def func31(value): if value and None and value != 1: pass def func32(value): if value is value and value != 1: pass def func33(value): if None is None and value != 1: pass def func34(value): a = 2 if a is a and value != 1: pass func31(<warning descr="Expected type '{__ne__}', got 'None' instead">None</warning>) func32(<warning descr="Expected type '{__ne__}', got 'None' instead">None</warning>) func33(<warning descr="Expected type '{__ne__}', got 'None' instead">None</warning>) func34(<warning descr="Expected type '{__ne__}', got 'None' instead">None</warning>)"""); }