```py foo = 1 if type(foo) is int: # no error ... if type(foo) is type(1): # error ... ``` the pylint rule `unidiomatic-typecheck` catches both cases