Closed hyanwong closed 5 months ago
In constants.py we declare the equivalent of the following:
class Const(IntFlag): NODE_IS_SAMPLE = 1
Then when we use the bitwise inversion operator we get different results in python 3.10 vs 3.11
~Const.NODE_IS_SAMPLE == -2 # True in python 3.10 ~Const.NODE_IS_SAMPLE == 2 # True in python 3.11
We should work out what the correct thing to do here is.
Removed the IntFlag subclassing from the basic constants, as it doesn't make sense e.g. for NULL.
In constants.py we declare the equivalent of the following:
Then when we use the bitwise inversion operator we get different results in python 3.10 vs 3.11
We should work out what the correct thing to do here is.