I want to determine if a variable is an integer, so I use the following code:
if isinstance(var, int):
do_something()
but when var = False, the do_something function is executed.
when var = None, the isinstance() function works normaly.