It means that you have done e.g.
a = b - c
but, although b
is an int
, c is None
and therefore the subtraction operation cannot happen.
As to the root cause, it is most likely that at some point c = some_function()
and there is a path through some_function
that will (implicitly or explicitly) return None
.