NoneType
just happens to not automatically be in the global scope. This isn't really a problem.
>>> NoneType = type(None)
>>> x = None
>>> type(x) == NoneType
True
>>> isinstance(x, NoneType)
True
In any case it would be unusual to do a type check. Rather you should test x is None
.