In my code there's a variable foo that receives the value from a called function. Because of the parameters passed to this function it returns None.
When i execute an if comparing the variable foo with the None value it returns False. But if i sign type(None) to a bar variable and execute the same ifit returns True. 
Why?
TL;DR
foo = function()
type(foo)
>> <class 'NoneType'>
if foo == None
>> False
bar = None
if foo == bar 
>> False
bar = type(None)
if foo == bar
>> True
Why?
 
    