• N
    [CodeStyle][E711] use `is`/`is not` for comparison with `None` (#47452) · a35a4a53
    Nyakku Shigure 提交于
    * [CodeStyle][E711] use `is`/`is not` for comparison with `None`
    
    * `self.assertTrue($A is None)` -> `self.assertIsNone($A)`
    
    * `self.assertTrue($A is not None)` -> `self.assertIsNotNone($A)`
    
    * `self.assertFalse($A is None)` -> `self.assertIsNotNone($A)`
    
    * `self.assertEqual($A, None)` -> `self.assertIsNone($A)`
    
    * `self.assertNotEqual($A, None)` -> `self.assertIsNotNone($A)`
    a35a4a53
test_imperative_basic.py 38.5 KB