The State class is a set of flags whose values are the members of the StateFlag enum. Instances of the class support the standard Python int methods.
int